Skip to content
Permalink
Browse files

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
  • Loading branch information
mhugent
mhugent committed Oct 30, 2009
1 parent bf347d0 commit be0b23664b9bc9a4c83ce3e84e784d1011e2f5b1
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 be0b236

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