diff options
author | Armin Le Grand <armin.le.grand@me.com> | 2020-04-10 18:07:41 +0200 |
---|---|---|
committer | Armin Le Grand <Armin.Le.Grand@me.com> | 2020-04-10 20:37:52 +0200 |
commit | ae743c6fae4543282f8930dc78175cc510fabbb3 (patch) | |
tree | eb44065aece45c9fd86b50df495c3746192fb0be /filter | |
parent | 25468bba15a149edc1e53a7518070c64d4c967e9 (diff) |
Make BitmapPrimitive2D vcl-independent
as preparation to have drawinglayer module
independent from vcl in the future
Change-Id: Iaa01370f27b51cba5114a54f37d1ec73d0719918
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/92048
Tested-by: Jenkins
Reviewed-by: Armin Le Grand <Armin.Le.Grand@me.com>
Diffstat (limited to 'filter')
-rw-r--r-- | filter/source/pdf/pdfdecomposer.cxx | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/filter/source/pdf/pdfdecomposer.cxx b/filter/source/pdf/pdfdecomposer.cxx index a03e70bd5d1a..15e500343f8f 100644 --- a/filter/source/pdf/pdfdecomposer.cxx +++ b/filter/source/pdf/pdfdecomposer.cxx @@ -20,6 +20,7 @@ #include <vcl/pdfread.hxx> #include <vcl/svapp.hxx> #include <vcl/outdev.hxx> +#include <toolkit/helper/vclunohelper.hxx> #include <com/sun/star/graphic/XPdfDecomposer.hpp> #include <com/sun/star/lang/XServiceInfo.hpp> @@ -84,7 +85,8 @@ uno::Sequence<uno::Reference<graphic::XPrimitive2D>> SAL_CALL XPdfDecomposer::ge // create primitive uno::Sequence<uno::Reference<graphic::XPrimitive2D>> aSequence(1); - aSequence[0] = new drawinglayer::primitive2d::BitmapPrimitive2D(aReplacement, aBitmapTransform); + aSequence[0] = new drawinglayer::primitive2d::BitmapPrimitive2D( + VCLUnoHelper::CreateVCLXBitmap(aReplacement), aBitmapTransform); return aSequence; } |