COIN-OR::LEMON - Graph Library

Changeset 1501:39d59aee2a1a in lemon-0.x for gui/broken_edge.cc


Ignore:
Timestamp:
06/17/05 14:25:53 (19 years ago)
Author:
Hegyi Péter
Branch:
default
Phase:
public
Convert:
svn:c9d7d8f5-90d6-0310-b91f-818b3a526b0e/lemon/trunk@1982
Message:

Very small bug is corrected: if node creator tool is active, the small red arrows won't move, if you click on them and if you drag the newly created node... 'was hard to notice it :-)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • gui/broken_edge.cc

    r1500 r1501  
    33#include <math.h>
    44
    5 BrokenEdge::BrokenEdge(Gnome::Canvas::Group & g, Gnome::Canvas::Points p) : Line(g), isbutton(false)
     5BrokenEdge::BrokenEdge(Gnome::Canvas::Group & g, Gnome::Canvas::Points p, GraphDisplayerCanvas & gc) : Line(g), gdc(gc), isbutton(false)
    66{
    77  my_points=new Gnome::Art::Point[3];
     
    111111    case GDK_BUTTON_PRESS:
    112112      //we mark the location of the event to be able to calculate parameters of dragging
    113       clicked_x=e->button.x;
    114       clicked_y=e->button.y;
    115       isbutton=true;
     113      if(gdc.get_actual_tool()!=CREATE_NODE)
     114        {
     115          clicked_x=e->button.x;
     116          clicked_y=e->button.y;
     117          isbutton=true;
     118        }
    116119      break;
    117120    case GDK_BUTTON_RELEASE:
Note: See TracChangeset for help on using the changeset viewer.