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

List:       kde-commits
Subject:    koffice/kword
From:       Sebastian Sauer <mail () dipe ! org>
Date:       2006-08-18 9:48:29
Message-ID: 1155894509.796691.26251.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 574159 by sebsauer:

Port r574158;
Prevent crashes.


 M  +4 -2      KWTableStyle.cpp  


--- trunk/koffice/kword/KWTableStyle.cpp #574158:574159
@@ -176,8 +176,10 @@
 {
     KoGenStyle tableCellStyle( KWDocument::STYLE_TABLE_CELL_USER, "table-cell" );
     tableCellStyle.addAttribute( "style:display-name", displayName() );
-    tableCellStyle.addProperty( "koffice:frame-style-name", m_frameStyle->name() );
-    tableCellStyle.addProperty( "koffice:paragraph-style-name", m_paragStyle->name() );
+    if ( m_frameStyle )
+        tableCellStyle.addProperty( "koffice:frame-style-name", m_frameStyle->name() );
+    if ( m_paragStyle )
+        tableCellStyle.addProperty( "koffice:paragraph-style-name", m_paragStyle->name() );
 
     // try to preserve existing internal name, if it looks adequate (no spaces)
     // ## TODO: check XML-Schemacs NCName conformity
[prev in list] [next in list] [prev in thread] [next in thread] 

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