diff options
author | Xisco Fauli <xiscofauli@libreoffice.org> | 2023-08-10 11:49:19 +0200 |
---|---|---|
committer | Xisco Fauli <xiscofauli@libreoffice.org> | 2023-08-10 16:34:04 +0200 |
commit | 4f656a057e2a92e2107f7820fc563498c801d7d3 (patch) | |
tree | d218e6684940d939753410e182b228b2f6bdb5de /svgio/qa/cppunit | |
parent | 5b54f61e2c969a547582f759803f3c4f80d44697 (diff) |
svgio: handle addGap internally inside SvgCharacterNode
Also add the gap at the beginning of the current node,
not at the end of the previous one
Change-Id: I6583059b4a7418010ac2af459e00fb0d02d39605
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/155552
Tested-by: Jenkins
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
Diffstat (limited to 'svgio/qa/cppunit')
-rw-r--r-- | svgio/qa/cppunit/SvgImportTest.cxx | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/svgio/qa/cppunit/SvgImportTest.cxx b/svgio/qa/cppunit/SvgImportTest.cxx index 80234e8b1f56..cf66e5bb623f 100644 --- a/svgio/qa/cppunit/SvgImportTest.cxx +++ b/svgio/qa/cppunit/SvgImportTest.cxx @@ -737,11 +737,11 @@ CPPUNIT_TEST_FIXTURE(Test, testTdf85770) assertXPath(pDocument, "/primitive2D/transform/textsimpleportion[1]", "height", "11"); assertXPath(pDocument, "/primitive2D/transform/textsimpleportion[1]", "familyname", "Times New Roman"); assertXPath(pDocument, "/primitive2D/transform/textsimpleportion[2]", "fontcolor", "#000000"); - assertXPath(pDocument, "/primitive2D/transform/textsimpleportion[2]", "text", "Start "); + assertXPath(pDocument, "/primitive2D/transform/textsimpleportion[2]", "text", "Start"); assertXPath(pDocument, "/primitive2D/transform/textsimpleportion[2]", "height", "11"); assertXPath(pDocument, "/primitive2D/transform/textsimpleportion[2]", "familyname", "Times New Roman"); assertXPath(pDocument, "/primitive2D/transform/textsimpleportion[3]", "fontcolor", "#000000"); - assertXPath(pDocument, "/primitive2D/transform/textsimpleportion[3]", "text", "End"); + assertXPath(pDocument, "/primitive2D/transform/textsimpleportion[3]", "text", " End"); assertXPath(pDocument, "/primitive2D/transform/textsimpleportion[3]", "height", "11"); assertXPath(pDocument, "/primitive2D/transform/textsimpleportion[3]", "familyname", "Times New Roman"); @@ -1163,12 +1163,12 @@ CPPUNIT_TEST_FIXTURE(Test, testTdf156251) // Without the fix in place, this test would have failed with // - Expected: 'You are ' // - Actual : 'You are' - assertXPath(pDocument, "/primitive2D/transform/textsimpleportion[1]", "text", "You are "); - assertXPath(pDocument, "/primitive2D/transform/textsimpleportion[2]", "text", "not "); - assertXPath(pDocument, "/primitive2D/transform/textsimpleportion[3]", "text", "a banana!"); - assertXPath(pDocument, "/primitive2D/transform/textsimpleportion[4]", "text", "You are "); - assertXPath(pDocument, "/primitive2D/transform/textsimpleportion[5]", "text", "not "); - assertXPath(pDocument, "/primitive2D/transform/textsimpleportion[6]", "text", "a banana!"); + assertXPath(pDocument, "/primitive2D/transform/textsimpleportion[1]", "text", "You are"); + assertXPath(pDocument, "/primitive2D/transform/textsimpleportion[2]", "text", " not"); + assertXPath(pDocument, "/primitive2D/transform/textsimpleportion[3]", "text", " a banana!"); + assertXPath(pDocument, "/primitive2D/transform/textsimpleportion[4]", "text", "You are"); + assertXPath(pDocument, "/primitive2D/transform/textsimpleportion[5]", "text", " not"); + assertXPath(pDocument, "/primitive2D/transform/textsimpleportion[6]", "text", " a banana!"); } CPPUNIT_TEST_FIXTURE(Test, testMaskText) |