Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Better automatic resize for legend box
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@9263 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
mhugent committed Sep 5, 2008
1 parent 110f825 commit 5bf607d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/core/composer/qgscomposerlegend.cpp
Expand Up @@ -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
Expand Down

0 comments on commit 5bf607d

Please sign in to comment.