diff --git a/sdext/source/pdfimport/tree/writertreevisiting.cxx b/sdext/source/pdfimport/tree/writertreevisiting.cxx index 310c13327ad7..c8101f9a23bf 100644 --- a/sdext/source/pdfimport/tree/writertreevisiting.cxx +++ b/sdext/source/pdfimport/tree/writertreevisiting.cxx @@ -759,7 +759,7 @@ void WriterXmlOptimizer::optimizeTextElements(Element& rParent) if( !bRotatedFrame && ! rCurGC.isRotatedOrSkewed() && ! rNextGC.isRotatedOrSkewed() - && pNext->Text.gerLength() > 0 + && pNext->Text.getLength() > 0 && pNext->Text[0] != sal_Unicode(' ') && pCur->Text.getLength() > 0 && pCur->Text[pCur->Text.getLength() - 1] != sal_Unicode(' ')