Fix wrong rounding in PreviewWindow
(fixes #3773)
This commit is contained in:
@@ -216,7 +216,7 @@ bool PreviewWindow::on_motion_notify_event (GdkEventMotion* event)
|
||||
CursorShape newType = cursor_type;
|
||||
|
||||
if (isMoving) {
|
||||
mainCropWin->remoteMove ((int)((event->x - (double)press_x) / zoom), (int)((event->y - (double)press_y) / zoom));
|
||||
mainCropWin->remoteMove ((event->x - press_x) / zoom, (event->y - press_y) / zoom);
|
||||
press_x = event->x;
|
||||
press_y = event->y;
|
||||
} else if (inside) {
|
||||
|
@@ -36,7 +36,7 @@ private:
|
||||
ImageArea* imageArea;
|
||||
int imgX, imgY, imgW, imgH;
|
||||
double zoom;
|
||||
int press_x, press_y;
|
||||
double press_x, press_y;
|
||||
bool isMoving;
|
||||
bool needsUpdate;
|
||||
CursorShape cursor_type;
|
||||
|
Reference in New Issue
Block a user