COIN-OR::LEMON - Graph Library

Changeset 1647:d5dc956393b2 in lemon-0.x


Ignore:
Timestamp:
08/23/05 18:27:59 (14 years ago)
Author:
Akos Ladanyi
Branch:
default
Phase:
public
Convert:
svn:c9d7d8f5-90d6-0310-b91f-818b3a526b0e/lemon/trunk@2160
Message:

bugfix

File:
1 edited

Legend:

Unmodified
Added
Removed
  • gui/graph_displayer_canvas-event.cc

    r1646 r1647  
    565565
    566566            //find the activated item between texts
    567             active_item=(get_item_at(e->button.x, e->button.y));
     567            window_to_world (e->button.x, e->button.y, clicked_x, clicked_y);
     568            active_item=(get_item_at(clicked_x, clicked_y));
    568569            for (EdgeIt i(mapstorage.graph); i!=INVALID; ++i)
    569570              {
     
    577578            if(clicked_edge==INVALID)
    578579              {
    579                 window_to_world (e->button.x, e->button.y, clicked_x, clicked_y);
    580                 active_item=(get_item_at(clicked_x, clicked_y));
    581 
    582580                for (EdgeIt i(mapstorage.graph); i!=INVALID; ++i)
    583581                  {
     
    593591              {
    594592                // the id map is not editable
    595                 if (nodemap_to_edit == "id") return 0;
     593                if (edgemap_to_edit == "id") return 0;
     594
    596595                //If there is already edited edge, it has to be saved first
    597596                if(entrywidget.is_visible())
Note: See TracChangeset for help on using the changeset viewer.