Skip to content
Permalink
Browse files

fix for screen update problems with composer grid annotations

git-svn-id: http://svn.osgeo.org/qgis/trunk@11868 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
mhugent
mhugent committed Oct 30, 2009
1 parent 27318ae commit 789deab16b05c92cfd39436818785599e02d6716
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/core/composer/qgscomposermap.cpp
@@ -1246,15 +1246,15 @@ double QgsComposerMap::maxExtension() const
QList< QPair< double, QLineF > >::const_iterator it = xLines.constBegin();
for ( ; it != xLines.constEnd(); ++it )
{
currentAnnotationString = QString::number( it->first );
currentAnnotationString = QString::number( it->first, 'f', mGridAnnotationPrecision );
currentExtension = std::max( textWidthMillimeters( mGridAnnotationFont, currentAnnotationString ), fontAscentMillimeters( mGridAnnotationFont ) );
maxExtension = std::max( maxExtension, currentExtension );
}

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

0 comments on commit 789deab

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