diff options
author | Caolán McNamara <caolanm@redhat.com> | 2023-01-03 18:55:29 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2023-01-04 14:10:41 +0000 |
commit | c938767fc2b3a7334eff1bb192c2f2403c3f9ee8 (patch) | |
tree | ff1352d0ca2a7ee5a908714229cd9b8a0af99536 /drawinglayer | |
parent | bd5cc6a50f2acdabc1c93bd49ce52c79a70c2144 (diff) |
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 <caolanm@redhat.com>
Diffstat (limited to 'drawinglayer')
-rw-r--r-- | drawinglayer/source/processor2d/cairopixelprocessor2d.cxx | 6 |
1 files changed, 4 insertions, 2 deletions
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)); |