diff options
author | Miklos Vajna <vmiklos@collabora.co.uk> | 2017-09-28 09:15:28 +0200 |
---|---|---|
committer | Miklos Vajna <vmiklos@collabora.co.uk> | 2017-09-28 14:08:13 +0200 |
commit | 4b88f3545c9525146327470ea767041d6de4c7ca (patch) | |
tree | fe86ba814d3f31a7ec11e72c5959f516129c751e /vcl | |
parent | a7e4417c630cc672e3d5e3c0638a6a468d38ad95 (diff) |
RTF export: various minor cleanups
Change-Id: I6bdbe246bf65dcfa193289210f7c464769d5e2ad
Reviewed-on: https://gerrit.libreoffice.org/42887
Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk>
Tested-by: Jenkins <ci@libreoffice.org>
Diffstat (limited to 'vcl')
-rw-r--r-- | vcl/source/filter/ipdf/pdfread.cxx | 5 |
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 |