summaryrefslogtreecommitdiff
path: root/svgio
diff options
context:
space:
mode:
authorArmin Le Grand <armin.le.grand@me.com>2020-04-10 18:07:41 +0200
committerArmin Le Grand <Armin.Le.Grand@me.com>2020-04-10 20:37:52 +0200
commitae743c6fae4543282f8930dc78175cc510fabbb3 (patch)
treeeb44065aece45c9fd86b50df495c3746192fb0be /svgio
parent25468bba15a149edc1e53a7518070c64d4c967e9 (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 'svgio')
-rw-r--r--svgio/CppunitTest_svgio.mk1
-rw-r--r--svgio/Library_svgio.mk1
-rw-r--r--svgio/source/svgreader/svgimagenode.cxx3
3 files changed, 4 insertions, 1 deletions
diff --git a/svgio/CppunitTest_svgio.mk b/svgio/CppunitTest_svgio.mk
index 24933397d7d3..c6f4db91fc60 100644
--- a/svgio/CppunitTest_svgio.mk
+++ b/svgio/CppunitTest_svgio.mk
@@ -38,6 +38,7 @@ $(eval $(call gb_CppunitTest_use_libraries,svgio,\
svt \
test \
unotest \
+ tk \
tl \
vcl \
))
diff --git a/svgio/Library_svgio.mk b/svgio/Library_svgio.mk
index 3a85da62d820..449c17f61196 100644
--- a/svgio/Library_svgio.mk
+++ b/svgio/Library_svgio.mk
@@ -38,6 +38,7 @@ $(eval $(call gb_Library_use_libraries,svgio,\
cppu \
cppuhelper \
sal \
+ tk \
tl \
sax \
vcl \
diff --git a/svgio/source/svgreader/svgimagenode.cxx b/svgio/source/svgreader/svgimagenode.cxx
index 8cb6f4a05917..73b1103dd44f 100644
--- a/svgio/source/svgreader/svgimagenode.cxx
+++ b/svgio/source/svgreader/svgimagenode.cxx
@@ -32,6 +32,7 @@
#include <sal/log.hxx>
#include <drawinglayer/geometry/viewinformation2d.hxx>
#include <comphelper/base64.hxx>
+#include <toolkit/helper/vclunohelper.hxx>
namespace svgio::svgreader
{
@@ -304,7 +305,7 @@ namespace svgio::svgreader
// as transformation to map the picture data correctly
aNewTarget.resize(1);
aNewTarget[0] = new drawinglayer::primitive2d::BitmapPrimitive2D(
- aBitmapEx,
+ VCLUnoHelper::CreateVCLXBitmap(aBitmapEx),
basegfx::utils::createScaleTranslateB2DHomMatrix(
aViewBox.getRange(),
aViewBox.getMinimum()));