X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=vv%2Fvv.cxx;h=301521b4662a8509197d81174b348964b4e5e140;hb=c8d3aefe3d07dd6f7092db662ca1b5d85553d544;hp=546f68afae8338147581ebbaac9e397a4f1096a7;hpb=5f4539e40d4dd29c2a4768247feb384ffaa2bd02;p=clitk.git diff --git a/vv/vv.cxx b/vv/vv.cxx index 546f68a..301521b 100644 --- a/vv/vv.cxx +++ b/vv/vv.cxx @@ -192,14 +192,17 @@ int main( int argc, char** argv ) } 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; }