GNOME Bugzilla – Bug 658796
devhelp's zoom out function of 2.30.0 cann't work correctly
Last modified: 2012-03-12 18:32:47 UTC
Step1:run devhelp; Step2:choose any book,open it; Step3:click the "zoom in" button for several times; Step4:click the "zoom out" button ,find the font became big,and "zoom in" button turn gray;
This is a bug in window_get_current_zoom_level_index(), it converts current zoom level to integer and compares that value with the zoom_levels array. This approach doesn't work, because of rounding errors in the float of integer conversion. When the index for the exact zoom level is not found, it returns current value of loop iterator which is 8. That's why zoom in action is disabled. I think it should use double values in zoom_levels array, so that we don't need to convert from float to integer, and use the same approach than ephy-zoom control to get the index of the nearest zoom level.
Created attachment 208847 [details] [review] Fix zoom in/out actions
Comment on attachment 208847 [details] [review] Fix zoom in/out actions Thanks, go ahead.
Comment on attachment 208847 [details] [review] Fix zoom in/out actions This was applied in commit 7b95b493e926f759dd0f1e5f077b2ebc1ed46c20
This problem has been fixed in our software repository. Thank you for your bug report.