diff options
| author | Krzysztof Kosi??ski <tweenk.pl@gmail.com> | 2010-02-09 02:20:18 +0000 |
|---|---|---|
| committer | Krzysztof KosiĆski <tweenk.pl@gmail.com> | 2010-02-09 02:20:18 +0000 |
| commit | 81f88ca0856da56bdf426cd065ff0acd3414567f (patch) | |
| tree | c909cc475397273059093d0fc8157f26b83350c1 /src/ui/tool/curve-drag-point.cpp | |
| parent | Translations. German translation update by uwesch. (diff) | |
| download | inkscape-81f88ca0856da56bdf426cd065ff0acd3414567f.tar.gz inkscape-81f88ca0856da56bdf426cd065ff0acd3414567f.zip | |
Fix multiple minor problems in the node tool
(bzr r9070)
Diffstat (limited to 'src/ui/tool/curve-drag-point.cpp')
| -rw-r--r-- | src/ui/tool/curve-drag-point.cpp | 15 |
1 files changed, 13 insertions, 2 deletions
diff --git a/src/ui/tool/curve-drag-point.cpp b/src/ui/tool/curve-drag-point.cpp index 88cb72ed5..e761daf20 100644 --- a/src/ui/tool/curve-drag-point.cpp +++ b/src/ui/tool/curve-drag-point.cpp @@ -44,6 +44,16 @@ CurveDragPoint::CurveDragPoint(PathManipulator &pm) setVisible(false); } +bool CurveDragPoint::_eventHandler(GdkEvent *event) +{ + // do not process any events when the manipulator is empty + if (_pm.empty()) { + setVisible(false); + return false; + } + return ControlPoint::_eventHandler(event); +} + bool CurveDragPoint::grabbed(GdkEventMotion */*event*/) { _pm._selection.hideTransformHandles(); @@ -149,6 +159,7 @@ void CurveDragPoint::_insertNode(bool take_selection) Glib::ustring CurveDragPoint::_getTip(unsigned state) { + if (_pm.empty()) return ""; if (!first || !first.next()) return ""; bool linear = first->front()->isDegenerate() && first.next()->back()->isDegenerate(); if (state_held_shift(state)) { @@ -162,11 +173,11 @@ Glib::ustring CurveDragPoint::_getTip(unsigned state) if (linear) { return C_("Path segment tip", "<b>Linear segment:</b> drag to convert to a Bezier segment, " - "doubleclick to insert node, click to select"); + "doubleclick to insert node, click to select (more: Shift, Ctrl+Alt)"); } else { return C_("Path segment tip", "<b>Bezier segment:</b> drag to shape the segment, doubleclick to insert node, " - "click to select"); + "click to select (more: Shift, Ctrl+Alt)"); } } |
