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 234f2f0ccccee02f3b1dc4ad982bde7c5823a291
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/core/diagram/qgshistogramdiagram.cpp
@@ -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.
You can’t perform that action at this time.