File tree 1 file changed +2
-2
lines changed
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -1246,15 +1246,15 @@ double QgsComposerMap::maxExtension() const
1246
1246
QList< QPair< double , QLineF > >::const_iterator it = xLines.constBegin ();
1247
1247
for ( ; it != xLines.constEnd (); ++it )
1248
1248
{
1249
- currentAnnotationString = QString::number ( it->first );
1249
+ currentAnnotationString = QString::number ( it->first , ' f ' , mGridAnnotationPrecision );
1250
1250
currentExtension = std::max ( textWidthMillimeters ( mGridAnnotationFont , currentAnnotationString ), fontAscentMillimeters ( mGridAnnotationFont ) );
1251
1251
maxExtension = std::max ( maxExtension, currentExtension );
1252
1252
}
1253
1253
1254
1254
it = yLines.constBegin ();
1255
1255
for ( ; it != yLines.constEnd (); ++it )
1256
1256
{
1257
- currentAnnotationString = QString::number ( it->first );
1257
+ currentAnnotationString = QString::number ( it->first , ' f ' , mGridAnnotationPrecision );
1258
1258
currentExtension = std::max ( textWidthMillimeters ( mGridAnnotationFont , currentAnnotationString ), fontAscentMillimeters ( mGridAnnotationFont ) );
1259
1259
maxExtension = std::max ( maxExtension, currentExtension );
1260
1260
}
You can’t perform that action at this time.
0 commit comments