summaryrefslogtreecommitdiffstats
path: root/src/display/snap-indicator.cpp
diff options
context:
space:
mode:
authorDiederik van Lierop <mailat-signdiedenrezidotnl>2010-07-25 20:29:45 +0000
committerDiederik van Lierop <mailat-signdiedenrezidotnl>2010-07-25 20:29:45 +0000
commitb3725365a24e922e5bda09d7489c2ed17d94108f (patch)
tree59907c619c5f06bf502106aa8544e925eb0491e0 /src/display/snap-indicator.cpp
parentMake icon preview seleciton stikcy by default. (diff)
downloadinkscape-b3725365a24e922e5bda09d7489c2ed17d94108f.tar.gz
inkscape-b3725365a24e922e5bda09d7489c2ed17d94108f.zip
1) Snap to transformation center even if it's outside of the bounding box of the parent item
2) In some cases the snap source indicator wasn't shown (bzr r9648)
Diffstat (limited to 'src/display/snap-indicator.cpp')
-rw-r--r--src/display/snap-indicator.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/display/snap-indicator.cpp b/src/display/snap-indicator.cpp
index 776c56c15..c3198cd37 100644
--- a/src/display/snap-indicator.cpp
+++ b/src/display/snap-indicator.cpp
@@ -229,14 +229,14 @@ SnapIndicator::set_new_snaptarget(Inkscape::SnappedPoint const &p, bool pre_snap
// Display the snap indicator (i.e. the cross)
SPCanvasItem * canvasitem = NULL;
canvasitem = sp_canvas_item_new(sp_desktop_tempgroup (_desktop),
- SP_TYPE_CTRL,
- "anchor", GTK_ANCHOR_CENTER,
- "size", 10.0,
- "stroked", TRUE,
- "stroke_color", pre_snap ? 0x7f7f7fff : 0xff0000ff,
- "mode", SP_KNOT_MODE_XOR,
- "shape", SP_KNOT_SHAPE_CROSS,
- NULL );
+ SP_TYPE_CTRL,
+ "anchor", GTK_ANCHOR_CENTER,
+ "size", 10.0,
+ "stroked", TRUE,
+ "stroke_color", pre_snap ? 0x7f7f7fff : 0xff0000ff,
+ "mode", SP_KNOT_MODE_XOR,
+ "shape", SP_KNOT_SHAPE_CROSS,
+ NULL );
const int timeout_val = 1200; // TODO add preference for snap indicator timeout?