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

svn path=/trunk/playground/graphics/okular/; revision=605980
remotes/origin/KDE/4.0
Pino Toscano 20 years ago
parent bd1880e42d
commit abb20bfe6c
  1. 2
      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 );

Loading…
Cancel
Save