Skip to content
Permalink
Browse files

Always keep full precision when saving annotation properties

(cherry-picked from 0554f56)
  • Loading branch information
nyalldawson committed Jul 26, 2016
1 parent 89b0a72 commit a1c96169eff1bf2702bbff464eb8272482e91657
Showing with 3 additions and 3 deletions.
  1. +3 −3 src/gui/qgsannotationitem.cpp
@@ -407,12 +407,12 @@ void QgsAnnotationItem::_writeXML( QDomDocument& doc, QDomElement& itemElem ) co
mMapPositionCrs.writeXML( annotationElem, doc );
annotationElem.setAttribute( "offsetX", qgsDoubleToString( mOffsetFromReferencePoint.x() ) );
annotationElem.setAttribute( "offsetY", qgsDoubleToString( mOffsetFromReferencePoint.y() ) );
annotationElem.setAttribute( "frameWidth", QString::number( mFrameSize.width() ) );
annotationElem.setAttribute( "frameHeight", QString::number( mFrameSize.height() ) );
annotationElem.setAttribute( "frameWidth", qgsDoubleToString( mFrameSize.width() ) );
annotationElem.setAttribute( "frameHeight", qgsDoubleToString( mFrameSize.height() ) );
QPointF canvasPos = pos();
annotationElem.setAttribute( "canvasPosX", qgsDoubleToString( canvasPos.x() ) );
annotationElem.setAttribute( "canvasPosY", qgsDoubleToString( canvasPos.y() ) );
annotationElem.setAttribute( "frameBorderWidth", QString::number( mFrameBorderWidth ) );
annotationElem.setAttribute( "frameBorderWidth", qgsDoubleToString( mFrameBorderWidth ) );
annotationElem.setAttribute( "frameColor", mFrameColor.name() );
annotationElem.setAttribute( "frameColorAlpha", mFrameColor.alpha() );
annotationElem.setAttribute( "frameBackgroundColor", mFrameBackgroundColor.name() );

0 comments on commit a1c9616

Please sign in to comment.
You can’t perform that action at this time.