Skip to content

Commit be0b236

Browse files
author
mhugent
committed
fix for screen update problems with composer grid annotations
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@11868 c8812cc2-4d05-0410-92ff-de0c093fc19c
1 parent bf347d0 commit be0b236

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/core/composer/qgscomposermap.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -1246,15 +1246,15 @@ double QgsComposerMap::maxExtension() const
12461246
QList< QPair< double, QLineF > >::const_iterator it = xLines.constBegin();
12471247
for ( ; it != xLines.constEnd(); ++it )
12481248
{
1249-
currentAnnotationString = QString::number( it->first );
1249+
currentAnnotationString = QString::number( it->first, 'f', mGridAnnotationPrecision );
12501250
currentExtension = std::max( textWidthMillimeters( mGridAnnotationFont, currentAnnotationString ), fontAscentMillimeters( mGridAnnotationFont ) );
12511251
maxExtension = std::max( maxExtension, currentExtension );
12521252
}
12531253

12541254
it = yLines.constBegin();
12551255
for ( ; it != yLines.constEnd(); ++it )
12561256
{
1257-
currentAnnotationString = QString::number( it->first );
1257+
currentAnnotationString = QString::number( it->first, 'f', mGridAnnotationPrecision );
12581258
currentExtension = std::max( textWidthMillimeters( mGridAnnotationFont, currentAnnotationString ), fontAscentMillimeters( mGridAnnotationFont ) );
12591259
maxExtension = std::max( maxExtension, currentExtension );
12601260
}

0 commit comments

Comments
 (0)