From 0b4da0006934503e6328ca79553f6686b3dc3a83 2012-07-11 14:00:54 From: sauimone Date: 2012-07-11 14:00:54 Subject: [PATCH] fixed bug in category y axis --- diff --git a/src/axis/chartcategoriesaxisy.cpp b/src/axis/chartcategoriesaxisy.cpp index cd72b04..49c880b 100644 --- a/src/axis/chartcategoriesaxisy.cpp +++ b/src/axis/chartcategoriesaxisy.cpp @@ -81,7 +81,7 @@ void ChartCategoriesAxisY::updateGeometry() for (int i = 0; i < layout.size(); ++i) { QGraphicsLineItem *lineItem = static_cast(lines.at(i)); - lineItem->setLine(layout[i], m_rect.top(), layout[i], m_rect.bottom()); + lineItem->setLine(m_rect.left() , layout[i], m_rect.right(), layout[i]); QGraphicsSimpleTextItem *labelItem = static_cast(labels.at(i)); if(i>=1){ labelItem->setText(ticksList.at(i-1));