From abb20bfe6cd100dee5b04b1a9d467d56afc783fc Mon Sep 17 00:00:00 2001 From: Pino Toscano Date: Sat, 18 Nov 2006 20:30:40 +0000 Subject: [PATCH] black can be a valid color, so don't discard it when saving svn path=/trunk/playground/graphics/okular/; revision=605980 --- core/annotations.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/annotations.cpp b/core/annotations.cpp index 49fef99ec..9d56bbbff 100644 --- a/core/annotations.cpp +++ b/core/annotations.cpp @@ -265,7 +265,7 @@ void Annotation::store( QDomNode & annNode, QDomDocument & document ) const // store -other- attributes if ( flags ) e.setAttribute( "flags", flags ); - if ( style.color.isValid() && style.color != Qt::black ) + if ( style.color.isValid() ) e.setAttribute( "color", style.color.name() ); if ( style.opacity != 1.0 ) e.setAttribute( "opacity", style.opacity );