Bug report #15861
Magnifier zoom factor incompatible with maximum zoom level
Status: | Closed | ||
---|---|---|---|
Priority: | Normal | ||
Assignee: | - | ||
Category: | Map Tools | ||
Affected QGIS version: | 2.18.0 | Regression?: | No |
Operating System: | Easy fix?: | No | |
Pull Request or Patch supplied: | No | Resolution: | |
Crashes QGIS or corrupts data: | No | Copied to github as #: | 23779 |
Description
When using the Magnifier to zoom by using the +/- shortcuts or the mouse wheel/trackpad, the zoom level is incremented by a factor of 2x. However, the maximum zoom level is set at 1000%, which is not a factor of 2x. This means when zooming in, the levels are 100, 200, 400, 800, but then 1000 instead of 1600. Thus, when zooming out the levels are 1000, 500, 250, 125, 62… As a result, it's impossible to zoom out to 100% from the maximum of 1000% using the shortcuts or mouse wheel.
Associated revisions
Make max canvas scale 1600% (fix #15861)
Max canvas sacle should be a multiple of 2 so that zooming in
to the max and then back out again results in 100% zoom option.
Additionally, make the min/max zoom level not come from QSettings
as these aren't exposed anywhere
Make max canvas scale 1600% (fix #15861)
Max canvas sacle should be a multiple of 2 so that zooming in
to the max and then back out again results in 100% zoom option.
Additionally, make the min/max zoom level not come from QSettings
as these aren't exposed anywhere
(cherry-picked from 6d0e8e6)
History
#1 Updated by Nyall Dawson about 8 years ago
- Status changed from Open to Closed
Fixed in changeset 6d0e8e62f0c2948a80f64be2f5e63e1c0c9d0ba3.
#2 Updated by Nathan Perry almost 8 years ago
- Status changed from Closed to Reopened
Apologies for the duplicate (#15900). I did not see at first that this issue had successfully been posted and already closed.
Reopening because a similar issue exists with the minimum zoom factor. It should be 12% (0.125) or 6% (0.0625) to avoid the same problem.
#3 Updated by Giovanni Manghi over 7 years ago
- Easy fix? set to No
- Regression? set to No
#4 Updated by Nyall Dawson over 7 years ago
- % Done changed from 0 to 100
- Status changed from Reopened to Closed
Applied in changeset qgis|6d0e8e62f0c2948a80f64be2f5e63e1c0c9d0ba3.