Skip to content

Commit 675ba9a

Browse files
committed
[composer] Fix placement of grid annotations when map has no frame set
1 parent a2d5acb commit 675ba9a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/core/composer/qgscomposermapgrid.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1508,7 +1508,7 @@ QgsComposerMapGrid::BorderSide QgsComposerMapGrid::borderForLineCoord( const QPo
15081508
return QgsComposerMapGrid::Left;
15091509
}
15101510

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

0 commit comments

Comments
 (0)