diff options
Diffstat (limited to 'drawinglayer/source/primitive2d/graphicprimitivehelper2d.cxx')
-rw-r--r-- | drawinglayer/source/primitive2d/graphicprimitivehelper2d.cxx | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/drawinglayer/source/primitive2d/graphicprimitivehelper2d.cxx b/drawinglayer/source/primitive2d/graphicprimitivehelper2d.cxx index 7c8597a14498..d301adc16a9c 100644 --- a/drawinglayer/source/primitive2d/graphicprimitivehelper2d.cxx +++ b/drawinglayer/source/primitive2d/graphicprimitivehelper2d.cxx @@ -40,6 +40,7 @@ #include <vcl/graph.hxx> #include <vcl/virdev.hxx> #include <vcl/svapp.hxx> +#include <toolkit/helper/vclunohelper.hxx> namespace drawinglayer::primitive2d { @@ -170,7 +171,7 @@ namespace drawinglayer::primitive2d return Primitive2DReference( new BitmapPrimitive2D( - BitmapEx(aMainBitmap, aMaskBitmap), + VCLUnoHelper::CreateVCLXBitmap(BitmapEx(aMainBitmap, aMaskBitmap)), getTransform())); } @@ -511,7 +512,7 @@ namespace drawinglayer::primitive2d { aRetval.resize(1); aRetval[0] = new BitmapPrimitive2D( - rGraphic.GetBitmapEx(), + VCLUnoHelper::CreateVCLXBitmap(rGraphic.GetBitmapEx()), rTransform); } |