After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 568150 - With 'Resize window on zoom', zoom focus does not work when window is of maximum size
With 'Resize window on zoom', zoom focus does not work when window is of maxi...
Status: RESOLVED OBSOLETE
Product: GIMP
Classification: Other
Component: General
2.7.4
Other All
: Normal normal
: ---
Assigned To: GIMP Bugs
GIMP Bugs
: 573974 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2009-01-18 09:19 UTC by Martin Nordholts
Modified: 2018-05-24 12:30 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
I think this patch can fix this bug. (4.78 KB, patch)
2010-07-28 10:20 UTC, xianghang
rejected Details | Review

Description Martin Nordholts 2009-01-18 09:19:04 UTC
When 'Resize window on zoom' is active and one is zooming in but the window already is as big as it can be, zoom focus should work but currently doesn't.

Steps to reproduce:
1. Make sure Edit -> Preferences, Image Window, Resize window on zoom is checked.
2. Open an image and zoom in so that the image window becomes of maximum size on your screen.
3. Place the cursor on an arbitrary point on the image except the point in the middle.
4. Press + to zoom in further.

Actual result:
The cursor is not used as zoom focus point.

Expected result:
The cursor to be used as zoom focus point, i.e. the pixel under the cursor remains the same also after zooming.
Comment 1 Martin Nordholts 2009-02-12 18:39:51 UTC
A fix for this will be in gimp_display_shell_scale(), currently no attempt at zoom focus is attempted if shell->display->config->resize_windows_on_zoom is TRUE. Should be pretty easy to rearrange the code to make this works, it's not trivial however (if it was then I would have fixed this already).
Comment 2 Martin Nordholts 2009-03-04 05:53:12 UTC
*** Bug 573974 has been marked as a duplicate of this bug. ***
Comment 3 xianghang 2010-07-28 10:20:49 UTC
Created attachment 166694 [details] [review]
I think this patch can fix this bug.
Comment 4 Sven Neumann 2010-07-31 13:16:34 UTC
Do we really want to add that much code for an obscure feature such as "Resize window on zoom" ? I vote for removing that feature instead. What does Peter say about this?
Comment 5 Martin Nordholts 2010-09-16 16:30:36 UTC
Review of attachment 166694 [details] [review]:

Rejecting due to duplication of existing code
Comment 6 Martin Nordholts 2010-09-16 16:32:07 UTC
'Resize window on zoom' can be quite neat by itself, it's just the mix of zoom-focus that's a bit messy

Not a very important bug I'd say, moving of 2.6 milestone
Comment 7 Michael Natterer 2012-01-09 00:37:38 UTC
Martin, is 2.7 affected by this bug?
Comment 8 Martin Nordholts 2012-01-09 18:45:28 UTC
Yes
Comment 9 GrafxUser 2012-06-08 20:45:14 UTC
FYI, it's still the same in 2.8
Comment 10 GNOME Infrastructure Team 2018-05-24 12:30:18 UTC
-- GitLab Migration Automatic Message --

This bug has been migrated to GNOME's GitLab instance and has been closed from further activity.

You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.gnome.org/GNOME/gimp/issues/293.