|
|
|
@ -436,11 +436,11 @@ void KWordTextHandler::writeFormat( QDomElement& parentElement, const wvWare::Wo
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// background color is known as "highlight" in msword
|
|
|
|
|
if ( !refChp || refChp->fHighlight != chp->fHighlight || refChp->cvHighlight != chp->cvHighlight ) {
|
|
|
|
|
if ( !refChp || refChp->fHighlight != chp->fHighlight || refChp->icoHighlight != chp->icoHighlight ) {
|
|
|
|
|
QDomElement bgcolElem( mainDocument().createElement( "TEXTBACKGROUNDCOLOR" ) );
|
|
|
|
|
if ( chp->fHighlight )
|
|
|
|
|
{
|
|
|
|
|
QColor color = Conversion::color( chp->cvHighlight, -1 );
|
|
|
|
|
QColor color = Conversion::color( chp->icoHighlight, -1 );
|
|
|
|
|
bgcolElem.setAttribute( "red", color.red() );
|
|
|
|
|
bgcolElem.setAttribute( "blue", color.blue() );
|
|
|
|
|
bgcolElem.setAttribute( "green", color.green() );
|
|
|
|
|