mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
IDEA-88218 Image editor: Zoom In after many Zoom Out stops working before bringing the image back to actual size
This commit is contained in:
@@ -277,7 +277,7 @@ final class ImageEditorUI extends JPanel implements DataProvider {
|
||||
// Micro
|
||||
double minFactor = getMinimumZoomFactor();
|
||||
double stepSize = (1.0d - minFactor) / MICRO_ZOOM_LIMIT;
|
||||
int step = (int) Math.ceil((1.0d - factor) / stepSize);
|
||||
double step = (1.0d - factor) / stepSize;
|
||||
|
||||
setZoomFactor(1.0d - stepSize * (step - 1));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user