black can be a valid color, so don't discard it when saving

svn path=/trunk/playground/graphics/okular/; revision=605980
This commit is contained in:
Pino Toscano 2006-11-18 20:30:40 +00:00
parent bd1880e42d
commit abb20bfe6c

View file

@ -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 );