summaryrefslogtreecommitdiff
path: root/comphelper/source/misc
diff options
context:
space:
mode:
authorXisco Fauli <xiscofauli@libreoffice.org>2023-03-10 15:04:39 +0100
committerXisco Fauli <xiscofauli@libreoffice.org>2023-03-10 17:52:36 +0000
commitafb7b373c34bd6a1608a30eb8267fa6f8231e853 (patch)
treed2b82b5e4c7d2ba186a0c8fabe7af58d89da3b43 /comphelper/source/misc
parentc804c5354855188b5a37219cfe11dc079dc235f4 (diff)
CppunitTest_sc_tiledrendering: reset CompatFlag in tearDown
Otherwise, there are some tests setting it to scPrintTwipsMsgs, so depending on the order of execution, it might affect other tests Change-Id: Ib0d08b1fe4e172bd5b03d63260e6b1c3fde26595 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/148635 Tested-by: Jenkins Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
Diffstat (limited to 'comphelper/source/misc')
-rw-r--r--comphelper/source/misc/lok.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/comphelper/source/misc/lok.cxx b/comphelper/source/misc/lok.cxx
index 1f07cd2614eb..019865a63696 100644
--- a/comphelper/source/misc/lok.cxx
+++ b/comphelper/source/misc/lok.cxx
@@ -178,9 +178,9 @@ bool isLocalRendering()
return g_bLocalRendering;
}
-void setCompatFlag(Compat flag) { g_eCompatFlags = static_cast<Compat>(g_eCompatFlags | flag); }
+void setCompatFlag(Compat flag) { g_eCompatFlags = flag; }
-bool isCompatFlagSet(Compat flag) { return (g_eCompatFlags & flag) == flag; }
+bool isCompatFlagSet(Compat flag) { return g_eCompatFlags == flag; }
void setLocale(const LanguageTag& rLanguageTag)
{