On-Preview Editing Widgets: Crashes, #6244

This commit is contained in:
Ingo Weyrich 2021-05-20 22:15:46 +02:00
parent 8c49b240f5
commit f1f147a826

View File

@ -705,6 +705,7 @@ void CropWindow::buttonRelease (int button, int num, int bstate, int x, int y)
state = SNormal;
needRedraw = true;
} else if (state == SEditDrag1 || state == SEditDrag2 || state == SEditDrag3) {
if (editSubscriber) {
if (state == SEditDrag1) {
needRedraw = editSubscriber->button1Released();
} else if (state == SEditDrag2) {
@ -713,7 +714,6 @@ void CropWindow::buttonRelease (int button, int num, int bstate, int x, int y)
needRedraw = editSubscriber->button3Released();
}
if (editSubscriber) {
rtengine::Crop* crop = static_cast<rtengine::Crop*>(cropHandler.getCrop());
Coord imgPos;
action_x = x;