Skip to content
Permalink
Browse files

[composer] Fix placement of grid annotations when map has no frame set

  • Loading branch information
nyalldawson committed Oct 1, 2014
1 parent a2d5acb commit 675ba9abee3ff1a8d5fcb271cfaacd9efd54a332
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/core/composer/qgscomposermapgrid.cpp
@@ -1508,7 +1508,7 @@ QgsComposerMapGrid::BorderSide QgsComposerMapGrid::borderForLineCoord( const QPo
return QgsComposerMapGrid::Left;
}

double framePenWidth = mComposerMap->hasFrame() ? mComposerMap->pen().widthF() : 0;
double framePenWidth = mComposerMap->hasFrame() ? mComposerMap->pen().widthF() : 0.000000001;
if ( p.y() <= framePenWidth )
{
return QgsComposerMapGrid::Top;

0 comments on commit 675ba9a

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