diff --git a/src/axis/barcategoryaxis/chartbarcategoryaxisx.cpp b/src/axis/barcategoryaxis/chartbarcategoryaxisx.cpp index 80604d9..c246031 100644 --- a/src/axis/barcategoryaxis/chartbarcategoryaxisx.cpp +++ b/src/axis/barcategoryaxis/chartbarcategoryaxisx.cpp @@ -95,6 +95,7 @@ void ChartBarCategoryAxisX::updateGeometry() void ChartBarCategoryAxisX::handleCategoriesChanged() { + QGraphicsLayoutItem::updateGeometry(); if(presenter()) presenter()->layout()->invalidate(); } diff --git a/src/axis/datetimeaxis/chartdatetimeaxisx.cpp b/src/axis/datetimeaxis/chartdatetimeaxisx.cpp index 47be5eb..a058ec9 100644 --- a/src/axis/datetimeaxis/chartdatetimeaxisx.cpp +++ b/src/axis/datetimeaxis/chartdatetimeaxisx.cpp @@ -70,12 +70,14 @@ void ChartDateTimeAxisX::updateGeometry() void ChartDateTimeAxisX::handleTickCountChanged(int tick) { Q_UNUSED(tick) + QGraphicsLayoutItem::updateGeometry(); if(presenter()) presenter()->layout()->invalidate(); } void ChartDateTimeAxisX::handleFormatChanged(const QString &format) { Q_UNUSED(format); + QGraphicsLayoutItem::updateGeometry(); if(presenter()) presenter()->layout()->invalidate(); }