Skip to content

Commit

Permalink
[composer] Fix placement of grid annotations when map has no frame set
Browse files Browse the repository at this point in the history
  • Loading branch information
nyalldawson committed Oct 1, 2014
1 parent a2d5acb commit 675ba9a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/composer/qgscomposermapgrid.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 675ba9a

Please sign in to comment.