Skip to content

Commit 5bf607d

Browse files
author
mhugent
committed
Better automatic resize for legend box
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@9263 c8812cc2-4d05-0410-92ff-de0c093fc19c
1 parent 110f825 commit 5bf607d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/core/composer/qgscomposerlegend.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -270,8 +270,8 @@ void QgsComposerLegend::drawPointSymbol( QPainter* p, QgsSymbol* s, double curre
270270
p->restore();
271271
}
272272

273-
currentXPosition += pointImage.width() / rasterScaleFactor;
274-
symbolHeight = pointImage.height() / rasterScaleFactor;
273+
currentXPosition += s->pointSize(); //pointImage.width() / rasterScaleFactor;
274+
symbolHeight = s->pointSize(); //pointImage.height() / rasterScaleFactor;
275275
}
276276

277277
void QgsComposerLegend::drawLineSymbol( QPainter* p, QgsSymbol* s, double currentYCoord, double& currentXPosition ) const

0 commit comments

Comments
 (0)