diff options
author | Tomaž Vajngerl <tomaz.vajngerl@collabora.co.uk> | 2018-05-23 18:23:31 +0900 |
---|---|---|
committer | Tomaž Vajngerl <quikee@gmail.com> | 2018-05-23 13:39:15 +0200 |
commit | 15938ebbfa3a52595371a718f251137612184d21 (patch) | |
tree | 5727f5548d67f68d28ad31138879daabbb39d706 /sd | |
parent | a2e6f31c6f90e446d1462e7c80f6b1317f7825bc (diff) |
sd: convert XGraphic to XBitmap for the "GraphicBitmap" property
Change-Id: Idec08d4823775b11976f8650fe942f296d6dd4ce
Reviewed-on: https://gerrit.libreoffice.org/54695
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Tomaž Vajngerl <quikee@gmail.com>
Diffstat (limited to 'sd')
-rw-r--r-- | sd/source/filter/eppt/pptx-text.cxx | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/sd/source/filter/eppt/pptx-text.cxx b/sd/source/filter/eppt/pptx-text.cxx index 615cb15aad09..285c5e14a5fd 100644 --- a/sd/source/filter/eppt/pptx-text.cxx +++ b/sd/source/filter/eppt/pptx-text.cxx @@ -23,6 +23,7 @@ #include <com/sun/star/awt/CharSet.hpp> #include <com/sun/star/awt/FontWeight.hpp> #include <com/sun/star/awt/FontUnderline.hpp> +#include <com/sun/star/awt/XBitmap.hpp> #include <com/sun/star/beans/XPropertyState.hpp> #include <com/sun/star/container/XEnumerationAccess.hpp> #include <com/sun/star/container/XIndexReplace.hpp> @@ -846,7 +847,10 @@ void ParagraphObj::ImplGetNumberingLevel( PPTExBulletProvider* pBuProv, sal_Int1 } else if ( aPropName == "GraphicBitmap" ) - xGraphic = pPropValue[i].Value.get<uno::Reference<graphic::XGraphic>>(); + { + auto xBitmap = pPropValue[i].Value.get<uno::Reference<awt::XBitmap>>(); + xGraphic.set(xBitmap, uno::UNO_QUERY); + } else if ( aPropName == "GraphicSize" ) { if (auto aSize = o3tl::tryAccess<css::awt::Size>(pPropValue[i].Value)) |