[Libreoffice-commits] core.git: vcl/qa
Xisco Fauli (via logerrit)
logerrit at kemper.freedesktop.org
Thu Oct 24 14:00:28 UTC 2019
vcl/qa/cppunit/pdfexport/data/tdf115967.odt |binary
vcl/qa/cppunit/pdfexport/pdfexport.cxx | 7 ++++---
2 files changed, 4 insertions(+), 3 deletions(-)
New commits:
commit dca2adcdb6ed93dff76468d02e0de6984fae3ec9
Author: Xisco Fauli <xiscofauli at libreoffice.org>
AuthorDate: Thu Oct 24 13:38:23 2019 +0200
Commit: Xisco FaulĂ <xiscofauli at libreoffice.org>
CommitDate: Thu Oct 24 15:58:57 2019 +0200
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 at libreoffice.org>
diff --git a/vcl/qa/cppunit/pdfexport/data/tdf115967.odt b/vcl/qa/cppunit/pdfexport/data/tdf115967.odt
index 3c8384a101be..39f4ce1784e5 100644
Binary files a/vcl/qa/cppunit/pdfexport/data/tdf115967.odt and b/vcl/qa/cppunit/pdfexport/data/tdf115967.odt differ
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()
More information about the Libreoffice-commits
mailing list