[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    KOFFICE_1_3_BRANCH: koffice/lib/kotext
From:       Waldo Bastian <bastian () kde ! org>
Date:       2004-02-07 22:49:34
Message-ID: 20040207224934.B93629135 () office ! kde ! org
[Download RAW message or body]

CVS commit by waba: 

"Page Layout -> Empty Page" results in some serious mislayouting. (0 width text \
frame?) This patch fixes the crash that results from the 0 width crect.
Please forward port.


  M +2 -0      kotextdocument.cc   1.56.2.1


--- koffice/lib/kotext/kotextdocument.cc  #1.56:1.56.2.1
@@ -321,4 +321,6 @@ void KoTextDocument::drawParagWYSIWYG( Q
                                        KoTextCursor *cursor, bool resetChanged, uint \
drawingFlags )  {
+    if ((cw == 0) || (ch == 0)) return;
+
 #ifdef DEBUG_PAINTING
     kdDebug(32500) << "KoTextDocument::drawParagWYSIWYG " << (void*)parag << " id:" \
<< parag->paragId() << endl;


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic