All pastes #438395 Raw Edit

Miscellany

public text v1 · immutable
·published 2007-04-13 16:20 UTC
rendered paste body
Index: gr_Painter.cpp
===================================================================
RCS file: /cvsroot/abi/src/af/gr/xp/gr_Painter.cpp,v
retrieving revision 1.11
diff -u -r1.11 gr_Painter.cpp
--- gr_Painter.cpp      12 Apr 2007 10:54:55 -0000      1.11
+++ gr_Painter.cpp      13 Apr 2007 16:18:33 -0000
@@ -43,10 +43,11 @@
        : m_pGr (pGr),
                m_pCaretDisabler(NULL)
 {
-       UT_ASSERT (m_pGr);
+       UT_ASSERT_HARMLESS (m_pGr);
        if(bCaret)
          m_pCaretDisabler = NULL;
-       m_pGr->beginPaint ();
+       if(m_pGr)
+         m_pGr->beginPaint ();
 }