From 93c2b5b165613ac5a3d21ada5fd03236432fff31 2012-03-06 15:01:39 From: sauimone Date: 2012-03-06 15:01:39 Subject: [PATCH] floating value layout fix for barchart --- diff --git a/src/barchart/percentbarpresenter.cpp b/src/barchart/percentbarpresenter.cpp index 0e4bdf3..493df19 100644 --- a/src/barchart/percentbarpresenter.cpp +++ b/src/barchart/percentbarpresenter.cpp @@ -74,7 +74,7 @@ void PercentBarPresenter::layoutChanged() // Position floating values itemIndex = 0; - xPos = ((tW/tC) - mBarWidth / 2); + xPos = (tW/tC); for (int category=0; category < mSeries->categoryCount(); category++) { qreal yPos = h; qreal colSum = mSeries->categorySum(category); diff --git a/src/barchart/stackedbarpresenter.cpp b/src/barchart/stackedbarpresenter.cpp index 692db65..fbe3bb3 100644 --- a/src/barchart/stackedbarpresenter.cpp +++ b/src/barchart/stackedbarpresenter.cpp @@ -83,7 +83,7 @@ void StackedBarPresenter::layoutChanged() // Position floating values itemIndex = 0; - xPos = ((tW/tC) - mBarWidth / 2); + xPos = (tW/tC); for (int category=0; category < mSeries->categoryCount(); category++) { qreal yPos = h; for (int set=0; set < mSeries->barsetCount(); set++) {