From 98eb0c23b8066792d7a77e571fb7d48c9fe02db6 Mon Sep 17 00:00:00 2001 From: Romulo Pinho Date: Mon, 5 Sep 2011 17:16:02 +0200 Subject: [PATCH] locale bug in vv with French - An error when resetting the locale to its original value caused the previous setting to be undone... --- vv/vv.cxx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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; } -- 2.47.1