Do not store flag Annotation::ExternallyDrawn when exporting to DOM

It's an implementation detail
remotes/origin/KDE/4.9
Fabio D'Urso 14 years ago committed by Albert Astals Cid
parent 249bea5985
commit 68127e00ea
  1. 4
      core/annotations.cpp

@ -768,8 +768,8 @@ void Annotation::store( QDomNode & annNode, QDomDocument & document ) const
e.setAttribute( "creationDate", d->m_creationDate.toString(Qt::ISODate) );
// store -other- attributes
if ( d->m_flags )
e.setAttribute( "flags", d->m_flags );
if ( d->m_flags ) // Strip ExternallyDrawn flag because it's an implementation detail
e.setAttribute( "flags", d->m_flags & ~Annotation::ExternallyDrawn );
if ( d->m_style.color().isValid() )
e.setAttribute( "color", d->m_style.color().name() );
if ( d->m_style.opacity() != 1.0 )

Loading…
Cancel
Save