Skip to content
Permalink
Browse files
Diagram size correction (important for placement with PAL)
  • Loading branch information
m-kuhn committed Aug 10, 2012
1 parent 901d2e1 commit 234f2f0
Showing 1 changed file with 2 additions and 2 deletions.
@@ -56,11 +56,11 @@ QSizeF QgsHistogramDiagram::diagramSize( const QgsAttributeMap& attributes, cons
{
case QgsDiagramSettings::Up:
case QgsDiagramSettings::Down:
return QSizeF( s.barWidth * attributes.size(), maxValue );
return QSizeF( s.barWidth * attributes.size(), maxValue * mScaleFactor );

case QgsDiagramSettings::Right:
case QgsDiagramSettings::Left:
return QSizeF( maxValue, s.barWidth * attributes.size() );
return QSizeF( maxValue * mScaleFactor, s.barWidth * attributes.size() );
}

return QSizeF();

0 comments on commit 234f2f0

Please sign in to comment.