patch: status bar menu fix


Subject: patch: status bar menu fix
From: Patrick Lam (plam@plam.lcs.mit.edu)
Date: Sun Apr 08 2001 - 20:36:57 CDT


The status bar checkbox is only checked if "Show Ruler" is off. The code
isn't even correct, really: VIEW_PRINT is not the same type as
m_bShowRuler, and it wouldn't even make sense to only check 'Show Ruler'
if the view mode was print.

pat

Index: src/wp/ap/xp/ap_Menu_Functions.cpp
===================================================================
RCS file: /cvsroot/abi/src/wp/ap/xp/ap_Menu_Functions.cpp,v
retrieving revision 1.42
diff -u -r1.42 ap_Menu_Functions.cpp
--- src/wp/ap/xp/ap_Menu_Functions.cpp 2001/03/22 04:14:47 1.42
+++ src/wp/ap/xp/ap_Menu_Functions.cpp 2001/04/09 01:22:22
@@ -779,7 +779,7 @@
                        s = EV_MIS_ZERO;
                break;
        case AP_MENU_ID_VIEW_STATUSBAR:
- if ( pFrameData->m_bShowStatusBar && !pFrameData->m_bIsFullScre\en && (pFrameData->m_bShowRuler == VIEW_PRINT))
+ if ( pFrameData->m_bShowStatusBar && !pFrameData->m_bIsFullScre\en )
                        s = EV_MIS_Toggled;
                else
                        s = EV_MIS_ZERO;



This archive was generated by hypermail 2b25 : Sun Apr 08 2001 - 20:40:16 CDT