Skip to content
Permalink
Browse files

Fix histogram orientation bug (left <-> right exchanged)

  • Loading branch information
m-kuhn committed Aug 14, 2012
1 parent 6976772 commit 4f9e623b91e8ddcb77d8297b0b9d3216280cee63
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/core/diagram/qgshistogramdiagram.cpp
@@ -144,11 +144,11 @@ void QgsHistogramDiagram::renderDiagram( const QgsAttributeMap& att, QgsRenderCo
break;

case QgsDiagramSettings::Right:
p->drawRect( baseX, baseY + currentOffset, 0 - length, scaledWidth );
p->drawRect( baseX, baseY + currentOffset, length, scaledWidth );
break;

case QgsDiagramSettings::Left:
p->drawRect( baseX, baseY + currentOffset, length, scaledWidth );
p->drawRect( baseX, baseY + currentOffset, 0 - length, scaledWidth );
break;
}

0 comments on commit 4f9e623

Please sign in to comment.
You can’t perform that action at this time.