From 68127e00ea6baa6ba1fba98bfee81f17d062f04e Mon Sep 17 00:00:00 2001 From: Fabio D'Urso Date: Mon, 7 May 2012 11:47:42 +0200 Subject: [PATCH] Do not store flag Annotation::ExternallyDrawn when exporting to DOM It's an implementation detail --- core/annotations.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/annotations.cpp b/core/annotations.cpp index 6842d9878..8649f6662 100644 --- a/core/annotations.cpp +++ b/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 )