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

List:       koffice-devel
Subject:    koffice/filters/kword/libexport
From:       Nicolas Goutte <nicolasg () snafu ! de>
Date:       2003-08-31 17:52:24
[Download RAW message or body]

CVS commit by goutte: 

Fix parsing of underline color. (The syntax has been changed in KWord.)
CCMAIL:koffice-devel@kde.org


  M +4 -6      ProcessDocument.cc   1.47


--- koffice/filters/kword/libexport/ProcessDocument.cc  #1.46:1.47
@@ -233,5 +233,5 @@ static void ProcessUnderlineTag (QDomNod
     QString str,style;
     bool wordbyword = false;
-    int red = 0, green = 0, blue = 0;
+    QString strColor;
 
     QValueList<AttrProcessing> attrProcessingList;
@@ -241,7 +241,5 @@ static void ProcessUnderlineTag (QDomNod
         << AttrProcessing ( "styleline", "QString",  &style )
         << AttrProcessing ( "wordbyword", "bool", &wordbyword )
-        << AttrProcessing ( "red",   "int", (void *) &red   )
-        << AttrProcessing ( "green", "int", (void *) &green )
-        << AttrProcessing ( "blue",  "int", (void *) &blue  )
+        << AttrProcessing ( "underlinecolor",   "QString", &strColor )
         ;
     ProcessAttributes (myNode, attrProcessingList);
@@ -264,5 +262,5 @@ static void ProcessUnderlineTag (QDomNod
         text->underlineStyle = style;
         text->underlineWord = wordbyword;
-        text->underlineColor.setRgb(red,green,blue);
+        text->underlineColor.setNamedColor(strColor);
     }
 }


_______________________________________________
koffice-devel mailing list
koffice-devel@mail.kde.org
http://mail.kde.org/mailman/listinfo/koffice-devel
[prev in list] [next in list] [prev in thread] [next in thread] 

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