summaryrefslogtreecommitdiff
path: root/vcl
diff options
context:
space:
mode:
Diffstat (limited to 'vcl')
-rw-r--r--vcl/source/filter/ipdf/pdfread.cxx5
1 files changed, 1 insertions, 4 deletions
diff --git a/vcl/source/filter/ipdf/pdfread.cxx b/vcl/source/filter/ipdf/pdfread.cxx
index fc85066a2b03..254e2adf1cd8 100644
--- a/vcl/source/filter/ipdf/pdfread.cxx
+++ b/vcl/source/filter/ipdf/pdfread.cxx
@@ -128,10 +128,7 @@ bool isCompatible(SvStream& rInStream)
sal_Int32 nMajor = OString(aFirstBytes[5]).toInt32();
sal_Int32 nMinor = OString(aFirstBytes[7]).toInt32();
- if (nMajor > 1 || (nMajor == 1 && nMinor > 4))
- return false;
-
- return true;
+ return !(nMajor > 1 || (nMajor == 1 && nMinor > 4));
}
/// Takes care of transparently downgrading the version of the PDF stream in