diff --git a/vcl/unx/generic/app/i18n_wrp.cxx b/vcl/unx/generic/app/i18n_wrp.cxx index 05dfd105535b..e152135bc914 100644 --- a/vcl/unx/generic/app/i18n_wrp.cxx +++ b/vcl/unx/generic/app/i18n_wrp.cxx @@ -235,7 +235,7 @@ Status XvaCloseIM(XIM) { Status s = False; - if (!g_dlmodule) + if (g_dlmodule) { /* assuming one XvaOpenIM call */ dlclose(g_dlmodule);