summaryrefslogtreecommitdiffstats
path: root/src/desktop.cpp
diff options
context:
space:
mode:
authorDiederik van Lierop <mail@diedenrezi.nl>2009-08-23 19:56:43 +0000
committerdvlierop2 <dvlierop2@users.sourceforge.net>2009-08-23 19:56:43 +0000
commitac652771931c1730c623848c75e8cbdd3f9fde84 (patch)
treec9c8830aad0888fdf8e8a547583dda4513001882 /src/desktop.cpp
parentfix 417676 (diff)
downloadinkscape-ac652771931c1730c623848c75e8cbdd3f9fde84.tar.gz
inkscape-ac652771931c1730c623848c75e8cbdd3f9fde84.zip
- fix bug #414142 (Moving path nodes twice is hard when snap is enabled)
- constrained snap: use projected point to calculate the snap distance (bzr r8526)
Diffstat (limited to 'src/desktop.cpp')
-rw-r--r--src/desktop.cpp9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/desktop.cpp b/src/desktop.cpp
index 6b7c20094..8c070786e 100644
--- a/src/desktop.cpp
+++ b/src/desktop.cpp
@@ -226,11 +226,18 @@ SPDesktop::init (SPNamedView *nv, SPCanvas *aCanvas)
setDisplayModeNormal();
}
+ // The order in which these canvas items are added determines the z-order. It's therefore
+ // important to add the tempgroup (which will contain the snapindicator) before adding the
+ // controls. Only this way one will be able to quickly (before the snap indicator has
+ // disappeared) reselect a node after snapping it. If the z-order is wrong however, this
+ // will not work (the snap indicator is on top of the node handler; is the snapindicator
+ // being selected? or does it intercept some of the events that should have gone to the
+ // node handler? see bug https://bugs.launchpad.net/inkscape/+bug/414142)
gridgroup = (SPCanvasGroup *) sp_canvas_item_new (main, SP_TYPE_CANVAS_GROUP, NULL);
guides = (SPCanvasGroup *) sp_canvas_item_new (main, SP_TYPE_CANVAS_GROUP, NULL);
sketch = (SPCanvasGroup *) sp_canvas_item_new (main, SP_TYPE_CANVAS_GROUP, NULL);
- controls = (SPCanvasGroup *) sp_canvas_item_new (main, SP_TYPE_CANVAS_GROUP, NULL);
tempgroup = (SPCanvasGroup *) sp_canvas_item_new (main, SP_TYPE_CANVAS_GROUP, NULL);
+ controls = (SPCanvasGroup *) sp_canvas_item_new (main, SP_TYPE_CANVAS_GROUP, NULL);
/* Push select tool to the bottom of stack */
/** \todo