Better automatic resize for legend box

git-svn-id: http://svn.osgeo.org/qgis/trunk@9263 c8812cc2-4d05-0410-92ff-de0c093fc19c
This commit is contained in:
mhugent 2008-09-05 14:39:43 +00:00
parent 58fbdfbb37
commit bda31792e1

View File

@ -270,8 +270,8 @@ void QgsComposerLegend::drawPointSymbol( QPainter* p, QgsSymbol* s, double curre
p->restore();
}
currentXPosition += pointImage.width() / rasterScaleFactor;
symbolHeight = pointImage.height() / rasterScaleFactor;
currentXPosition += s->pointSize(); //pointImage.width() / rasterScaleFactor;
symbolHeight = s->pointSize(); //pointImage.height() / rasterScaleFactor;
}
void QgsComposerLegend::drawLineSymbol( QPainter* p, QgsSymbol* s, double currentYCoord, double& currentXPosition ) const