}
if(win!="" && lev!="") {
- window.WindowLevelChanged(atof(win.c_str()), atof(lev.c_str()), 6, 0);
+ window.SetWindowLevel(atof(win.c_str()), atof(lev.c_str()));
window.ApplyWindowLevelToAllImages();
}
+
+ int ret = app.exec();
+
#ifndef _WIN32
// restoring the locale, just to be clean...
setlocale(LC_NUMERIC, old_locale.c_str());
#endif
- return app.exec();
+ return ret;
}