From koffice-devel Sun Aug 31 17:52:24 2003 From: Nicolas Goutte Date: Sun, 31 Aug 2003 17:52:24 +0000 To: koffice-devel Subject: koffice/filters/kword/libexport X-MARC-Message: https://marc.info/?l=koffice-devel&m=106235246010870 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 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