drawinglayer/source/processor2d/cairopixelprocessor2d.cxx | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-)
New commits: commit c938767fc2b3a7334eff1bb192c2f2403c3f9ee8 Author: Caolán McNamara <caol...@redhat.com> AuthorDate: Tue Jan 3 18:55:29 2023 +0000 Commit: Caolán McNamara <caol...@redhat.com> CommitDate: Wed Jan 4 14:10:41 2023 +0000 SDPR: sync with "Corrected some transformations in Direct2D renderer" Change-Id: I19a652390e803f4c60466ce7796ddfeda2ef27c1 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/145023 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caol...@redhat.com> diff --git a/drawinglayer/source/processor2d/cairopixelprocessor2d.cxx b/drawinglayer/source/processor2d/cairopixelprocessor2d.cxx index 24cc193ab93f..df9147d6eb56 100644 --- a/drawinglayer/source/processor2d/cairopixelprocessor2d.cxx +++ b/drawinglayer/source/processor2d/cairopixelprocessor2d.cxx @@ -363,10 +363,12 @@ void CairoPixelProcessor2D::processBitmapPrimitive2D( // color gets completely replaced, get it const basegfx::BColor aModifiedColor( maBColorModifierStack.getModifiedColor(basegfx::BColor())); + + // use unit geometry as fallback object geometry. Do *not* + // transform, the below used method will use the already + // correctly initialized local ViewInformation basegfx::B2DPolygon aPolygon(basegfx::utils::createUnitPolygon()); - aPolygon.transform(aLocalTransform); - // shortcut with local temporary instance rtl::Reference<primitive2d::PolyPolygonColorPrimitive2D> xTemp( new primitive2d::PolyPolygonColorPrimitive2D(basegfx::B2DPolyPolygon(aPolygon), aModifiedColor));