summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJabier Arraiza Cenoz <jabier.arraiza@marker.es>2015-01-01 09:10:01 +0000
committerJabiertxof <jtx@jtx.marker.es>2015-01-01 09:10:01 +0000
commit3b4ece17de35406620daa190e0779e7383243b32 (patch)
treef43c6bbe8b6161d903f0349e983f7bdb436a7b1f /src
parentFix for bug #758718 (Color Picker/Dropper: Color selection area not lined up ... (diff)
downloadinkscape-3b4ece17de35406620daa190e0779e7383243b32.tar.gz
inkscape-3b4ece17de35406620daa190e0779e7383243b32.zip
Allow reposition of BSpline using the path
(bzr r13830)
Diffstat (limited to 'src')
-rw-r--r--src/ui/tool/curve-drag-point.cpp14
1 files changed, 12 insertions, 2 deletions
diff --git a/src/ui/tool/curve-drag-point.cpp b/src/ui/tool/curve-drag-point.cpp
index 013553410..c27e4b5ee 100644
--- a/src/ui/tool/curve-drag-point.cpp
+++ b/src/ui/tool/curve-drag-point.cpp
@@ -94,8 +94,18 @@ void CurveDragPoint::dragged(Geom::Point &new_pos, GdkEventMotion *event)
if(!_pm.isBSpline(false)){
first->front()->move(first->front()->position() + offset0);
second->back()->move(second->back()->position() + offset1);
- }else if(weight>=0.8 && held_shift(*event))second->back()->move(new_pos);
- else if(weight<=0.2 && held_shift(*event))first->front()->move(new_pos);
+ }else if(weight>=0.8 && held_shift(*event)){
+ second->back()->move(new_pos);
+ }else if(weight<=0.2 && held_shift(*event)){
+ first->front()->move(new_pos);
+ }else if(weight>=0.7){
+ second->move(second->position() + delta);
+ }else if(weight<=0.3){
+ first->move(first->position() + delta);
+ }else{
+ first->move(first->position() + delta);
+ second->move(second->position() + delta);
+ }
_pm.update();
}