summaryrefslogtreecommitdiff
path: root/sw/qa/core/text/text.cxx
diff options
context:
space:
mode:
authorLászló Németh <nemeth@numbertext.org>2023-11-28 19:39:16 +0100
committerLászló Németh <nemeth@numbertext.org>2023-11-29 10:16:28 +0100
commit78872cc81bf4b1377c9cae8f9040a2443d0690c0 (patch)
tree60d39c8abf786eeb4f3b07b5c010b41e9ae5cdfb /sw/qa/core/text/text.cxx
parentce2fc5eb29b4e252993b549dee002fa8948c8386 (diff)
tdf#157768 sw: fix lost character background of NBSP
Regression from commit 28675af84ae8e2342bd78be3696dc09de6ce5cc5 "tdf#41652: Variable width NBSP". Change-Id: I066ecadac8961b182f8580147b197f13dd0daae4 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/160054 Tested-by: Jenkins Reviewed-by: László Németh <nemeth@numbertext.org>
Diffstat (limited to 'sw/qa/core/text/text.cxx')
-rw-r--r--sw/qa/core/text/text.cxx12
1 files changed, 6 insertions, 6 deletions
diff --git a/sw/qa/core/text/text.cxx b/sw/qa/core/text/text.cxx
index 8951b9fb6a82..7340a151d1f4 100644
--- a/sw/qa/core/text/text.cxx
+++ b/sw/qa/core/text/text.cxx
@@ -1263,9 +1263,9 @@ CPPUNIT_TEST_FIXTURE(SwCoreTextTest, testTdf41652NBSPWidth)
xmlDocUniquePtr pXmlDoc = dumpAndParse(aDumper, *xMetaFile);
nSectionAfterNBSPX_legacy_leftAligned
- = getXPath(pXmlDoc, "//textarray[3]"_ostr, "x"_ostr).toInt32();
+ = getXPath(pXmlDoc, "//textarray[4]"_ostr, "x"_ostr).toInt32();
nSectionAfterNBSPX_legacy_justified
- = getXPath(pXmlDoc, "//textarray[8]"_ostr, "x"_ostr).toInt32();
+ = getXPath(pXmlDoc, "//textarray[10]"_ostr, "x"_ostr).toInt32();
}
// Measure the X of sections after NBSPs in a file with the option enabled
@@ -1278,9 +1278,9 @@ CPPUNIT_TEST_FIXTURE(SwCoreTextTest, testTdf41652NBSPWidth)
xmlDocUniquePtr pXmlDoc = dumpAndParse(aDumper, *xMetaFile);
nSectionAfterNBSPX_optionDisabled_leftAligned
- = getXPath(pXmlDoc, "//textarray[3]"_ostr, "x"_ostr).toInt32();
+ = getXPath(pXmlDoc, "//textarray[4]"_ostr, "x"_ostr).toInt32();
nSectionAfterNBSPX_optionDisabled_justified
- = getXPath(pXmlDoc, "//textarray[8]"_ostr, "x"_ostr).toInt32();
+ = getXPath(pXmlDoc, "//textarray[10]"_ostr, "x"_ostr).toInt32();
}
// Measure the X of the sections after NBSPs in a file with the option enabled
@@ -1293,9 +1293,9 @@ CPPUNIT_TEST_FIXTURE(SwCoreTextTest, testTdf41652NBSPWidth)
xmlDocUniquePtr pXmlDoc = dumpAndParse(aDumper, *xMetaFile);
nSectionAfterNBSPX_optionEnabled_leftAligned
- = getXPath(pXmlDoc, "//textarray[3]"_ostr, "x"_ostr).toInt32();
+ = getXPath(pXmlDoc, "//textarray[4]"_ostr, "x"_ostr).toInt32();
nSectionAfterNBSPX_optionEnabled_justified
- = getXPath(pXmlDoc, "//textarray[8]"_ostr, "x"_ostr).toInt32();
+ = getXPath(pXmlDoc, "//textarray[10]"_ostr, "x"_ostr).toInt32();
}
// Assert left aligned NBSP for the legacy file is larger than zero