Kaydet (Commit) c8e9038b authored tarafından Michael Stahl's avatar Michael Stahl

fdo#72530: drawinglayer: fix PDF export of lossless picture

Don't pass empty Rectangle to PDFExtOutDevData::EndGroup(), it will
result in early return from PDFWriterImpl::drawJPGBitmap() and no
picture in the PDF.  Passing in the same Rectangle for the 3rd and 4th
parameter will avoid cropping in PDFExtOutDevData.

(regression from 677df250)

Change-Id: Icf110fe3e635319419fcacc7bc684c792a34d6ad
üst db27efd2
......@@ -824,7 +824,8 @@ namespace drawinglayer
sal_Int32(floor(aCurrentRange.getMinX())), sal_Int32(floor(aCurrentRange.getMinY())),
sal_Int32(ceil(aCurrentRange.getMaxX())), sal_Int32(ceil(aCurrentRange.getMaxY())));
const GraphicAttr& rAttr = rGraphicPrimitive.getGraphicAttr();
Rectangle aCropRect;
// fdo#72530 don't pass empty Rectangle to EndGroup
Rectangle aCropRect(aCurrentRect);
if(rAttr.IsCropped())
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment