Set proper axis type for temporary allocation plot.
authorMilian Wolff <mail@milianw.de>
Wed, 16 Dec 2015 10:59:08 +0000 (11:59 +0100)
committerMilian Wolff <mail@milianw.de>
Wed, 16 Dec 2015 10:59:08 +0000 (11:59 +0100)
gui/chartwidget.cpp

index ad95f9b..b56d1bf 100644 (file)
@@ -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());