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

List:       kde-commits
Subject:    koffice/filters/kword/rtf/import
From:       Thomas Zander <zander () kde ! org>
Date:       2007-12-01 10:29:12
Message-ID: 1196504952.900443.1587.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 743545 by zander:

Fix bug that the background would be all black.


 M  +3 -1      rtfimport.cpp  


--- trunk/koffice/filters/kword/rtf/import/rtfimport.cpp #743544:743545
@@ -2099,7 +2099,9 @@
 	    node.closeNode( "COLOR" );
 	}
 	if (format.fmt.bgcolor < colorTable.count() &&
-	    (!baseFormat || format.fmt.bgcolor != baseFormat->bgcolor))
+            format.fmt.bgcolor >= 0 &&
+	    (!baseFormat || format.fmt.bgcolor != baseFormat->bgcolor) &&
+            colorTable[format.fmt.bgcolor].isValid())
 	{
 	    node.addNode( "TEXTBACKGROUNDCOLOR" );
 	    node.addColor( colorTable[format.fmt.bgcolor] );
[prev in list] [next in list] [prev in thread] [next in thread] 

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