summaryrefslogtreecommitdiff
path: root/sw/source/filter/ww8/wrtww8gr.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'sw/source/filter/ww8/wrtww8gr.cxx')
-rw-r--r--sw/source/filter/ww8/wrtww8gr.cxx15
1 files changed, 14 insertions, 1 deletions
diff --git a/sw/source/filter/ww8/wrtww8gr.cxx b/sw/source/filter/ww8/wrtww8gr.cxx
index 4d9ceaa9c00f..ee2f92901b1e 100644
--- a/sw/source/filter/ww8/wrtww8gr.cxx
+++ b/sw/source/filter/ww8/wrtww8gr.cxx
@@ -67,6 +67,8 @@
#include <docsh.hxx>
#include <cstdio>
#include <o3tl/enumrange.hxx>
+#include <IDocumentDrawModelAccess.hxx>
+#include <drawdoc.hxx>
using namespace ::com::sun::star;
@@ -139,7 +141,18 @@ bool WW8Export::TestOleNeedsGraphic(const SwAttrSet& rSet,
if ( pOLENd )
nAspect = pOLENd->GetAspect();
SdrOle2Obj *pRet = SvxMSDffManager::CreateSdrOLEFromStorage(
- rStorageName,xObjStg,m_pDoc->GetDocStorage(),aGraph,aRect,tools::Rectangle(),nullptr,nErr,0,nAspect, m_pWriter->GetBaseURL());
+ *m_pDoc->getIDocumentDrawModelAccess().GetOrCreateDrawModel(),
+ rStorageName,
+ xObjStg,
+ m_pDoc->GetDocStorage(),
+ aGraph,
+ aRect,
+ tools::Rectangle(),
+ nullptr,
+ nErr,
+ 0,
+ nAspect,
+ m_pWriter->GetBaseURL());
if (pRet)
{