Skip to content
Permalink
Browse files

Always keep full precision when saving annotation properties

  • Loading branch information
nyalldawson committed Jul 21, 2016
1 parent 72b53b9 commit 0554f5656cedb588598ef41204acbff185e08a33
Showing with 3 additions and 3 deletions.
  1. +3 −3 src/gui/qgsannotationitem.cpp
@@ -418,12 +418,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 0554f56

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