Skip to content

Commit 789deab

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

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎src/core/composer/qgscomposermap.cpp‎

Lines changed: 2 additions & 2 deletions
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)