summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--svtools/source/config/htmlcfg.cxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/svtools/source/config/htmlcfg.cxx b/svtools/source/config/htmlcfg.cxx
index 8835b132bf05..b871881e0997 100644
--- a/svtools/source/config/htmlcfg.cxx
+++ b/svtools/source/config/htmlcfg.cxx
@@ -90,7 +90,8 @@ bool IsPrintLayoutExtension()
bool IsDefaultTextEncoding()
{
std::optional<sal_Int32> x = officecfg::Office::Common::Filter::HTML::Export::Encoding::get();
- return bool(x);
+ // if we have a value, then the text encoding is not default
+ return !bool(x);
}
rtl_TextEncoding GetTextEncoding()
{