summaryrefslogtreecommitdiffstats
path: root/src/gradient-drag.cpp
diff options
context:
space:
mode:
authorTavmjong Bah <tavmjong@free.fr>2016-11-17 14:48:24 +0000
committertavmjong-free <tavmjong@free.fr>2016-11-17 14:48:24 +0000
commit96f8eefea36bc2d45e53d0e74b93b457c02f554d (patch)
tree09798ed80817659aeb5f0f1f600f3323bda1ea42 /src/gradient-drag.cpp
parentRemove debug line from last commit. (diff)
downloadinkscape-96f8eefea36bc2d45e53d0e74b93b457c02f554d.tar.gz
inkscape-96f8eefea36bc2d45e53d0e74b93b457c02f554d.zip
Another fix for the status bar with mesh gradients.
(bzr r15258)
Diffstat (limited to 'src/gradient-drag.cpp')
-rw-r--r--src/gradient-drag.cpp11
1 files changed, 10 insertions, 1 deletions
diff --git a/src/gradient-drag.cpp b/src/gradient-drag.cpp
index fc75054a0..2d36e6a3f 100644
--- a/src/gradient-drag.cpp
+++ b/src/gradient-drag.cpp
@@ -1380,7 +1380,7 @@ GrDragger::moveMeshHandles ( Geom::Point pc_old, MeshNodeOperation op )
// Move on-screen knots
for( guint i = 0; i < mg->array.handles.size(); ++i ) {
- GrDragger *handle = drag->getDraggerFor( item, POINT_MG_HANDLE, i, fill_or_stroke );
+ GrDragger *handle = drag->getDraggerFor( item, POINT_MG_HANDLE, i, fill_or_stroke );
SPKnot *knot = handle->knot;
Geom::Point pk = getGradientCoords( item, POINT_MG_HANDLE, i, fill_or_stroke );
knot->moveto(pk);
@@ -1424,6 +1424,15 @@ void GrDragger::updateTip()
(draggable->fill_or_stroke == Inkscape::FOR_STROKE) ? _(" (stroke)") : "");
break;
+ case POINT_MG_CORNER:
+ case POINT_MG_HANDLE:
+ case POINT_MG_TENSOR:
+ this->knot->tip = g_strdup_printf (_("%s for: %s%s"),
+ _(gr_knot_descr[draggable->point_type]),
+ item_desc,
+ (draggable->fill_or_stroke == Inkscape::FOR_STROKE) ? _(" (stroke)") : "");
+ break;
+
default:
this->knot->tip = g_strdup_printf (_("%s for: %s%s; drag with <b>Ctrl</b> to snap angle, with <b>Ctrl+Alt</b> to preserve angle, with <b>Ctrl+Shift</b> to scale around center"),
_(gr_knot_descr[draggable->point_type]),