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

List:       kde-commits
Subject:    koffice/plugins/artistictextshape
From:       Jan Hambrecht <jaham () gmx ! net>
Date:       2008-11-07 20:18:49
Message-ID: 1226089129.476742.24123.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 881336 by jaham:

when updating the cursor area, check if we have a valid cursor
this fixes a crash



 M  +1 -1      ArtisticTextTool.cpp  


--- trunk/koffice/plugins/artistictextshape/ArtisticTextTool.cpp #881335:881336
@@ -328,7 +328,7 @@
 
 void ArtisticTextTool::updateTextCursorArea() const
 {
-    if( ! m_currentShape && m_textCursor > -1 )
+    if( ! m_currentShape || m_textCursor < 0 )
         return;
 
     QRectF bbox = m_textCursorShape.boundingRect();
[prev in list] [next in list] [prev in thread] [next in thread] 

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