From 906c1d1c27b87bb9574a5816236170347bd39602 Mon Sep 17 00:00:00 2001 From: Milian Wolff Date: Wed, 16 Dec 2015 11:59:08 +0100 Subject: [PATCH] Set proper axis type for temporary allocation plot. --- gui/chartwidget.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/gui/chartwidget.cpp b/gui/chartwidget.cpp index ad95f9b..b56d1bf 100644 --- a/gui/chartwidget.cpp +++ b/gui/chartwidget.cpp @@ -114,7 +114,8 @@ void ChartWidget::setModel(ChartModel* model) bottomAxis->setPosition(CartesianAxis::Bottom); totalPlotter->addAxis(bottomAxis); - CartesianAxis* rightAxis = model->type() == ChartModel::Allocations ? new CartesianAxis(totalPlotter) : new SizeAxis(totalPlotter); + CartesianAxis* rightAxis = model->type() == ChartModel::Allocations || model->type() == ChartModel::Temporary + ? new CartesianAxis(totalPlotter) : new SizeAxis(totalPlotter); rightAxis->setTextAttributes(axisTextAttributes); rightAxis->setTitleTextAttributes(axisTitleTextAttributes); rightAxis->setTitleText(model->headerData(1).toString()); -- 2.7.4