diff --git a/officecfg/registry/schema/org/openoffice/Office/Writer.xcs b/officecfg/registry/schema/org/openoffice/Office/Writer.xcs
index 7cdf4e6b68f0..6d3efca6330a 100644
--- a/officecfg/registry/schema/org/openoffice/Office/Writer.xcs
+++ b/officecfg/registry/schema/org/openoffice/Office/Writer.xcs
@@ -2194,7 +2194,7 @@
Specifies whether selected text will be enclosed with parentheses, square brackets, curly braces or quotation marks, depending on which button is pressed.
- true
+ false
diff --git a/sw/qa/extras/uiwriter/uiwriter9.cxx b/sw/qa/extras/uiwriter/uiwriter9.cxx
index d5e02a24de72..ef1ad2deb2ae 100644
--- a/sw/qa/extras/uiwriter/uiwriter9.cxx
+++ b/sw/qa/extras/uiwriter/uiwriter9.cxx
@@ -606,9 +606,18 @@ CPPUNIT_TEST_FIXTURE(SwUiWriterTest9, testTdf165351)
CPPUNIT_TEST_FIXTURE(SwUiWriterTest9, testTdf151710)
{
+ // Turn "Enclose with characters" on temporarily
+ std::shared_ptr pBatch(
+ comphelper::ConfigurationChanges::create());
+ officecfg::Office::Writer::FmtAidsAutocomplete::EncloseWithCharacters::set(true, pBatch);
+ pBatch->commit();
+ comphelper::ScopeGuard _([&] {
+ officecfg::Office::Writer::FmtAidsAutocomplete::EncloseWithCharacters::set(false, pBatch);
+ pBatch->commit();
+ });
+
createSwDoc();
- // Check that the particular setting is turned on by default
const SwViewOption* pVwOpt = getSwDocShell()->GetWrtShell()->GetViewOptions();
CPPUNIT_ASSERT(pVwOpt);
CPPUNIT_ASSERT(pVwOpt->IsEncloseWithCharactersOn());
@@ -687,6 +696,16 @@ CPPUNIT_TEST_FIXTURE(SwUiWriterTest9, testTdf151710)
CPPUNIT_TEST_FIXTURE(SwUiWriterTest9, testTdf167132)
{
+ // Turn "Enclose with characters" on temporarily
+ std::shared_ptr pBatch(
+ comphelper::ConfigurationChanges::create());
+ officecfg::Office::Writer::FmtAidsAutocomplete::EncloseWithCharacters::set(true, pBatch);
+ pBatch->commit();
+ comphelper::ScopeGuard _([&] {
+ officecfg::Office::Writer::FmtAidsAutocomplete::EncloseWithCharacters::set(false, pBatch);
+ pBatch->commit();
+ });
+
// Given a document with several paragraphs, and a formula object
createSwDoc("text-with-formula.fodt");
CPPUNIT_ASSERT_EQUAL(3, getParagraphs());
@@ -762,6 +781,16 @@ CPPUNIT_TEST_FIXTURE(SwUiWriterTest9, testTdf167132)
CPPUNIT_TEST_FIXTURE(SwUiWriterTest9, testTdf167133)
{
+ // Turn "Enclose with characters" on temporarily
+ std::shared_ptr pBatch(
+ comphelper::ConfigurationChanges::create());
+ officecfg::Office::Writer::FmtAidsAutocomplete::EncloseWithCharacters::set(true, pBatch);
+ pBatch->commit();
+ comphelper::ScopeGuard _([&] {
+ officecfg::Office::Writer::FmtAidsAutocomplete::EncloseWithCharacters::set(false, pBatch);
+ pBatch->commit();
+ });
+
// Given a document with a single paragraph, having a formula object
createSwDoc("text-with-formula-one-paragraph.fodt");
dispatchCommand(mxComponent, u".uno:SelectAll"_ustr, {});