diff options
author | Xisco Fauli <xiscofauli@libreoffice.org> | 2019-10-24 13:38:23 +0200 |
---|---|---|
committer | Xisco Faulí <xiscofauli@libreoffice.org> | 2019-10-24 15:58:57 +0200 |
commit | dca2adcdb6ed93dff76468d02e0de6984fae3ec9 (patch) | |
tree | 8463de82758f80933d09d413854eb62c64f8001b /vcl | |
parent | dbe5388c92d988c106cb8def839d031008a0d642 (diff) |
tdf#115967: fix windows build
Also fix a misleading comment
Change-Id: Ide6096291c2fc6c43cfd7116af7798ae03069fab
Reviewed-on: https://gerrit.libreoffice.org/81448
Tested-by: Jenkins
Reviewed-by: Xisco Faulí <xiscofauli@libreoffice.org>
Diffstat (limited to 'vcl')
-rw-r--r-- | vcl/qa/cppunit/pdfexport/data/tdf115967.odt | bin | 12872 -> 12091 bytes | |||
-rw-r--r-- | vcl/qa/cppunit/pdfexport/pdfexport.cxx | 7 |
2 files changed, 4 insertions, 3 deletions
diff --git a/vcl/qa/cppunit/pdfexport/data/tdf115967.odt b/vcl/qa/cppunit/pdfexport/data/tdf115967.odt Binary files differindex 3c8384a101be..39f4ce1784e5 100644 --- a/vcl/qa/cppunit/pdfexport/data/tdf115967.odt +++ b/vcl/qa/cppunit/pdfexport/data/tdf115967.odt diff --git a/vcl/qa/cppunit/pdfexport/pdfexport.cxx b/vcl/qa/cppunit/pdfexport/pdfexport.cxx index 4d85190ea5ac..eb779207de56 100644 --- a/vcl/qa/cppunit/pdfexport/pdfexport.cxx +++ b/vcl/qa/cppunit/pdfexport/pdfexport.cxx @@ -1709,7 +1709,8 @@ void PdfExportTest::testTdf115967() CPPUNIT_ASSERT(pPdfPage.get()); FPDF_TEXTPAGE pTextPage = FPDFText_LoadPage(pPdfPage.get()); - // Make sure the table sum is displayed as "0", not faulty expression. + // Make sure the elements inside a formula in a RTL document are exported + // LTR ( m=750abc ) and not RTL ( m=057cba ) int nPageObjectCount = FPDFPage_CountObjects(pPdfPage.get()); OUString sText; for (int i = 0; i < nPageObjectCount; ++i) @@ -1721,9 +1722,9 @@ void PdfExportTest::testTdf115967() std::vector<sal_Unicode> aText(nTextSize); FPDFTextObj_GetText(pPageObject, pTextPage, aText.data(), nTextSize); OUString sChar(aText.data(), nTextSize / 2 - 1); - sText += sChar; + sText += sChar.trim(); } - CPPUNIT_ASSERT_EQUAL(OUString("m=750 g"), sText); + CPPUNIT_ASSERT_EQUAL(OUString("m=750abc"), sText); } void PdfExportTest::testTdf121615() |