Apache OpenOffice (AOO) Bugzilla – Issue 128461
Zoom in Page Preview - negative values are treated as 600 (max factor)
Last modified: 2022-03-22 19:30:43 UTC
1. In Writer document switch to Page Preview (choose menu 'File - Page Preview' or click the "Page Preview" icon on the Standard bar) 2. Enter a negative value in the combo box "Preview Zoom" on the Page Preview bar. Result: the zoom level of the page preview is set to 600 %
Confirmed on Ubuntu 16.04 with AOO 4.1.10. On the other hand A negative zoom value entered via "View - Zoom" and then "Variable" results in a zoom factor of 20%. I think this should be the preferred way also for "Page Preview".
> I think this should be the preferred way also for "Page Preview". Yes. It works that way in the combo box for zero and positive values less than 20. _Possible_ code pointer - the source file /main/sw/source/ui/ribbar/workctrl.cxx with its function SwZoomBox_Impl::Select() 814 void SwZoomBox_Impl::Select() 815 { 816 if ( !IsTravelSelect() ) 817 { 818 String sEntry(GetText()); 819 sEntry.EraseAllChars( '%' ); 820 sal_uInt16 nZoom = (sal_uInt16)sEntry.ToInt32(); 821 if(nZoom < MINZOOM) 822 nZoom = MINZOOM; 823 if(nZoom > MAXZOOM) 824 nZoom = MAXZOOM; Line 820 seems to be a culprit. For anyone with a good command of C++ that should be an easy fix.
Fixed with commit 1dfc6c9463fbb9b844e2b5cbe65eeb832bc1a977 Thank you!