summaryrefslogtreecommitdiffstats
path: root/src/ui/tool/node.cpp
diff options
context:
space:
mode:
authorJabier Arraiza Cenoz <jabier.arraiza@marker.es>2014-05-05 08:44:33 +0000
committerJabiertxof <jtx@jtx.marker.es>2014-05-05 08:44:33 +0000
commit8a4e7975e48ae18a719f4ecfae795fb44a188eee (patch)
treec2262728d2bdf1825521dc4cbe71a8b2f3bf8b63 /src/ui/tool/node.cpp
parentupdate to trunk (diff)
parentEnabling path manipulator to comunicate if paths are bspline when (diff)
downloadinkscape-8a4e7975e48ae18a719f4ecfae795fb44a188eee.tar.gz
inkscape-8a4e7975e48ae18a719f4ecfae795fb44a188eee.zip
adding Vinícius work whith node tips
(bzr r11950.1.339)
Diffstat (limited to 'src/ui/tool/node.cpp')
-rw-r--r--src/ui/tool/node.cpp12
1 files changed, 2 insertions, 10 deletions
diff --git a/src/ui/tool/node.cpp b/src/ui/tool/node.cpp
index 7ba69b039..1434a5c5b 100644
--- a/src/ui/tool/node.cpp
+++ b/src/ui/tool/node.cpp
@@ -476,9 +476,7 @@ Glib::ustring Handle::_getTip(unsigned state) const
// a trick to mark as bspline if the node has no strength, we are going to use it later
// to show the appropiate messages. We cannot do it in any different way becasue the function is constant
- bool isBSpline = false;
- //if( _parent->bsplineWeight != 0.0000)
- // isBSpline = true;
+ bool isBSpline = _pm().isBSpline();
bool can_shift_rotate = _parent->type() == NODE_CUSP && !other()->isDegenerate();
if (can_shift_rotate && !isBSpline) {
more = C_("Path handle tip", "more: Shift, Ctrl, Alt");
@@ -1421,13 +1419,7 @@ Node *Node::nodeAwayFrom(Handle *h)
Glib::ustring Node::_getTip(unsigned state) const
{
-
- /* if the node doesnt have strength, it marks it as bspline, we'll use it later
- to show the appropiate messages. We cannot do it in any other way, because the
- function is constant */
- bool isBSpline = false;
- //if( this->bsplineWeight != 0.0000)
- // isBSpline = true;
+ bool isBSpline = _pm().isBSpline();
if (state_held_shift(state)) {
bool can_drag_out = (_next() && _front.isDegenerate()) || (_prev() && _back.isDegenerate());
if (can_drag_out) {