Skip to content

Commit

Permalink
Merge pull request #6278 from Beep6581/preview-widget-fixes
Browse files Browse the repository at this point in the history
More preview widget fixes
  • Loading branch information
Lawrence37 committed Jun 13, 2021
2 parents 869ac54 + c13cc02 commit 166538d
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
7 changes: 7 additions & 0 deletions rtgui/cropwindow.cc
Expand Up @@ -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 ();
Expand Down
6 changes: 6 additions & 0 deletions rtgui/spot.cc
Expand Up @@ -428,6 +428,11 @@ void Spot::updateGeometry()
sourceCircle.setVisible(draggedSide != DraggedSide::SOURCE);
targetCircle.setVisible(draggedSide != DraggedSide::TARGET);
} else {
targetCircle.state = Geometry::NORMAL;
sourceCircle.state = Geometry::NORMAL;
targetFeatherCircle.state = Geometry::NORMAL;
sourceFeatherCircle.state = Geometry::NORMAL;

targetCircle.setActive (false);
targetMODisc.setActive (false);
sourceIcon.setActive (false);
Expand Down Expand Up @@ -667,6 +672,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;
Expand Down

0 comments on commit 166538d

Please sign in to comment.