From 1b43934a26a3af90d36fb7953c6f07bf324737d3 Mon Sep 17 00:00:00 2001 From: tbaudier Date: Tue, 23 Feb 2016 12:00:03 +0100 Subject: [PATCH] Updare the Window & Level spin boxes in the main window when the Window/Level are set up with --window and --level tags --- vv/vvMainWindow.cxx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/vv/vvMainWindow.cxx b/vv/vvMainWindow.cxx index effd0fe..474ddde 100644 --- a/vv/vvMainWindow.cxx +++ b/vv/vvMainWindow.cxx @@ -1895,6 +1895,7 @@ void vvMainWindow::ApplyWindowToSetOfImages(double window, unsigned int indexMin for (unsigned int i = indexMin; i <= indexMax && i < mSlicerManagers.size(); i++) { if (mSlicerManagers[i] == NULL) continue; + SetWindowLevel(window, mSlicerManagers[i]->GetColorLevel()); mSlicerManagers[i]->SetColorWindow(window); mSlicerManagers[i]->SetPreset(WL_USER); mSlicerManagers[i]->Render(); @@ -1908,6 +1909,7 @@ void vvMainWindow::ApplyLevelToSetOfImages(double level, unsigned int indexMin, for (unsigned int i = indexMin; i <= indexMax && i < mSlicerManagers.size(); i++) { if (mSlicerManagers[i] == NULL) continue; + SetWindowLevel(mSlicerManagers[i]->GetColorWindow(), level); mSlicerManagers[i]->SetColorLevel(level); mSlicerManagers[i]->SetPreset(WL_USER); mSlicerManagers[i]->Render(); -- 2.47.1