From 03d661e6e1a004cb7dce5a5da5506b603d1119f8 Mon Sep 17 00:00:00 2001
From: Shahroz Ahmed <shahroz.ahmed@stfc.ac.uk>
Date: Mon, 1 Feb 2016 14:38:27 +0000
Subject: [PATCH] applies the nth term to the colour map

refs #1890
---
 MantidPlot/src/Mantid/InstrumentWidget/InstrumentWindow.cpp | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/MantidPlot/src/Mantid/InstrumentWidget/InstrumentWindow.cpp b/MantidPlot/src/Mantid/InstrumentWidget/InstrumentWindow.cpp
index 8ba73104488..b9fa7cd0baf 100644
--- a/MantidPlot/src/Mantid/InstrumentWidget/InstrumentWindow.cpp
+++ b/MantidPlot/src/Mantid/InstrumentWidget/InstrumentWindow.cpp
@@ -803,8 +803,9 @@ void InstrumentWindow::readSettings() {
 
   colorMapRangeChanged(qs.value("user_param_minVal").toDouble(),
                        qs.value("user_param_maxVal").toDouble());
-  m_renderTab->m_colorMapWidget->setNthPower(
-      qs.value("user_param_nthTerm").toDouble());
+  m_renderTab->nthPowerChanged(qs.value("user_param_nthTerm").toDouble());
+  changeNthPower(qs.value("user_param_nthTerm").toDouble());
+
   // auto scale after max and min value required as it will
   // read the above above and uncheck the box
   m_renderTab->m_autoscaling->setChecked(
-- 
GitLab