Patch: Page setup dialog fix for 6743

From: <sum1_lists_at_yahoo.com>
Date: Mon Jul 05 2004 - 11:23:52 CEST

This patch limits the page scale in the Windows page setup dialog to
1.0-1000.0. This fixes bug 6743. Please backport this.

Index: abi/src/wp/ap/win/ap_Win32Dialog_PageSetup.cpp
===================================================================
RCS file: /cvsroot/abi/src/wp/ap/win/ap_Win32Dialog_PageSetup.cpp,v
retrieving revision 1.24
diff -u -3 -r1.24 ap_Win32Dialog_PageSetup.cpp
--- abi/src/wp/ap/win/ap_Win32Dialog_PageSetup.cpp 3 Apr 2004 17:42:08 -0000 1.24
+++ abi/src/wp/ap/win/ap_Win32Dialog_PageSetup.cpp 5 Jul 2004 07:58:05 -0000
@@ -600,7 +600,7 @@
                 {
                         char buf[BUFSIZE];
                         GetDlgItemText( hWnd, wId, buf, BUFSIZE );
- if( atoi(buf) >= 0.0 && atoi(buf) != getPageScale() )
+ if( atoi(buf) >= 1.0 && atoi(buf) <= 1000.0 && atoi(buf) != getPageScale() )
                         {
                                 setPageScale( atoi(buf) );
 
Received on Mon Jul 5 11:12:23 2004

This archive was generated by hypermail 2.1.8 : Mon Jul 05 2004 - 11:12:24 CEST