From: Romulo Pinho Date: Mon, 5 Sep 2011 15:16:02 +0000 (+0200) Subject: locale bug in vv with French X-Git-Tag: v1.3.0~236^2~3^2 X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=commitdiff_plain;h=98eb0c23b8066792d7a77e571fb7d48c9fe02db6;p=clitk.git locale bug in vv with French - An error when resetting the locale to its original value caused the previous setting to be undone... --- diff --git a/vv/vv.cxx b/vv/vv.cxx index 9811050..301521b 100644 --- a/vv/vv.cxx +++ b/vv/vv.cxx @@ -196,10 +196,13 @@ int main( int argc, char** argv ) 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; }