diff --git a/rtgui/cropwindow.cc b/rtgui/cropwindow.cc index b612de2e7..2927cdf32 100644 --- a/rtgui/cropwindow.cc +++ b/rtgui/cropwindow.cc @@ -794,6 +794,13 @@ void CropWindow::buttonRelease (int button, int num, int bstate, int x, int y) iarea->setToolHand (); } + if (state != SEditDrag1 && state != SEditDrag2 && state != SEditDrag3) { + iarea->deltaImage.set(0, 0); + iarea->deltaScreen.set(0, 0); + iarea->deltaPrevImage.set(0, 0); + iarea->deltaPrevScreen.set(0, 0); + } + if (cropgl && (state == SCropSelecting || state == SResizeH1 || state == SResizeH2 || state == SResizeW1 || state == SResizeW2 || state == SResizeTL || state == SResizeTR || state == SResizeBL || state == SResizeBR || state == SCropMove)) { cropgl->cropManipReady (); iarea->setToolHand (); diff --git a/rtgui/spot.cc b/rtgui/spot.cc index 35028415b..4f2d700cc 100644 --- a/rtgui/spot.cc +++ b/rtgui/spot.cc @@ -667,6 +667,7 @@ bool Spot::button3Pressed (int modifierKey) return true; } else if (! (modifierKey & (GDK_SHIFT_MASK | GDK_SHIFT_MASK))) { EditSubscriber::action = EditSubscriber::Action::PICKING; + return true; } return false;