summaryrefslogtreecommitdiff
path: root/sdext/source/pdfimport/wrapper/wrapper.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'sdext/source/pdfimport/wrapper/wrapper.cxx')
-rw-r--r--sdext/source/pdfimport/wrapper/wrapper.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/sdext/source/pdfimport/wrapper/wrapper.cxx b/sdext/source/pdfimport/wrapper/wrapper.cxx
index d091d6b58f31..2adae2043bad 100644
--- a/sdext/source/pdfimport/wrapper/wrapper.cxx
+++ b/sdext/source/pdfimport/wrapper/wrapper.cxx
@@ -1122,7 +1122,7 @@ bool xpdf_ImportFromFile( const OUString& rURL,
// embedded fonts and bitmaps
Parser aParser(rSink,pErr,xContext);
OStringBuffer line;
- while( osl_File_E_None == readLine(pOut, line) && line.getLength() )
+ while( osl_File_E_None == readLine(pOut, line) && !line.isEmpty() )
aParser.parseLine(line.makeStringAndClear());
}
}