Fixed handling of pipettes with the extended zoom levels

Fixes #3861
This commit is contained in:
Alberto Griggio
2017-05-04 16:24:47 +02:00
parent 3d916db95d
commit aff3a03b57

View File

@@ -2214,6 +2214,10 @@ void CropWindow::screenCoordToCropBuffer (int phyx, int phyy, int& cropx, int& c
if (zoomSteps[cropZoom].zoom > 1.) {
cropx = int(double(cropx) / zoomSteps[cropZoom].zoom);
cropy = int(double(cropy) / zoomSteps[cropZoom].zoom);
} else {
float czoom = float((zoomSteps[cropZoom].czoom/10) * 10) / float(zoomSteps[cropZoom].czoom);
cropx = cropx / czoom;
cropy = cropy / czoom;
}
cropx += crop->getLeftBorder();