Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fix histogram orientation bug (left <-> right exchanged)
  • Loading branch information
m-kuhn committed Aug 14, 2012
1 parent 6976772 commit 4f9e623
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/core/diagram/qgshistogramdiagram.cpp
Expand Up @@ -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;
}

Expand Down

0 comments on commit 4f9e623

Please sign in to comment.