COIN-OR::LEMON - Graph Library

Changeset 1943:7349b09373a0 in lemon-0.x for gui


Ignore:
Timestamp:
02/02/06 16:44:45 (14 years ago)
Author:
Akos Ladanyi
Branch:
default
Phase:
public
Convert:
svn:c9d7d8f5-90d6-0310-b91f-818b3a526b0e/lemon/trunk@2518
Message:

Fix crash when an arrow is clicked with the delete tool.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • gui/graph_displayer_canvas-event.cc

    r1883 r1943  
    555555        }
    556556
     557      // return if the clicked object is neither an edge nor a node
     558      if (active_edge == INVALID) return false;
     559     
    557560      //recolor activated item
    558561      if(active_item)
     
    597600                }
    598601              //a simple edge was chosen
    599               else
     602              else if (active_edge != INVALID)
    600603                {
    601604                  deleteItem(active_edge);
     
    609612                  *active_item << Gnome::Canvas::Properties::fill_color("blue");
    610613                }
    611               else
     614              else if (active_edge != INVALID)
    612615                {
    613616                  *active_item << Gnome::Canvas::Properties::fill_color("green");
Note: See TracChangeset for help on using the changeset viewer.