vcl/source/gdi/pdfextoutdevdata.cxx | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-)
New commits: commit 56ebe9fb8467a1777eaa495bb4a571200b0697b1 Author: László Németh <laszlo.nem...@collabora.com> Date: Wed Oct 26 20:55:27 2016 +0200 Revert "tdf#99723: target ratio must be reached" This reverts commit 0a72b24b2991f40c756031b9bfddfa35bcb78f63. diff --git a/vcl/source/gdi/pdfextoutdevdata.cxx b/vcl/source/gdi/pdfextoutdevdata.cxx index 1a58c90..34d0c1b 100644 --- a/vcl/source/gdi/pdfextoutdevdata.cxx +++ b/vcl/source/gdi/pdfextoutdevdata.cxx @@ -830,18 +830,14 @@ bool PDFExtOutDevData::HasAdequateCompression( const Graphic &rGraphic, { 80, 1500 }, { 75, 1700 } }; sal_Int32 nTargetRatio = 10000; - bool bIsTargetRatioReached = false; for (auto & rRatio : aRatios) { if ( mnCompressionQuality > rRatio.mnQuality ) - { - bIsTargetRatioReached = true; break; - } nTargetRatio = rRatio.mnRatio; } - return ((nCurrentRatio > nTargetRatio) && bIsTargetRatioReached); + return nCurrentRatio > nTargetRatio; } }
_______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits