patch for bug 766


Subject: patch for bug 766
From: Patrick Lam (plam@plam.lcs.mit.edu)
Date: Tue Apr 03 2001 - 01:08:59 CDT


So I'm not completely sure that this patch has no nefarious effects, but
it looks ok.

The same sort of deal is in ap_TopRuler.cpp. Who wrote the original code,
anyway?

pat

Index: src/wp/ap/xp/ap_LeftRuler.cpp
===================================================================
RCS file: /cvsroot/abi/src/wp/ap/xp/ap_LeftRuler.cpp,v
retrieving revision 1.30
diff -u -r1.30 ap_LeftRuler.cpp
--- src/wp/ap/xp/ap_LeftRuler.cpp 2001/02/06 22:54:58 1.30
+++ src/wp/ap/xp/ap_LeftRuler.cpp 2001/04/03 06:06:44
@@ -143,7 +143,11 @@
 
 UT_uint32 AP_LeftRuler::getWidth(void) const
 {
- return s_iFixedWidth;
+ // Well, someone did this to ap_TopRuler.cpp, so I assume that this must be
+ // correct here too. Otherwise setWidth never gets called, and that just sucks,
+ // because m_iWidth does get used. -PL
+// return s_iFixedWidth;
+ return m_iWidth;
 }
 
 /*****************************************************************/



This archive was generated by hypermail 2b25 : Tue Apr 03 2001 - 01:12:23 CDT