summaryrefslogtreecommitdiff
path: root/sw/source/filter/ww8/ww8par4.cxx
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2015-08-25 08:55:09 +0100
committerCaolán McNamara <caolanm@redhat.com>2015-08-25 08:55:54 +0100
commit666fb214e93d542dd80e48b9e008727129b5764f (patch)
tree3bc1b6b12926bee2ffbf184ad384f9b08e9f98ab /sw/source/filter/ww8/ww8par4.cxx
parent4809c42c091e60a2b5fdfa6792c6130acf123466 (diff)
there may be no storage available in older formats
Change-Id: I23cbaf7fc1320168eb75ca33fd6d704125508785
Diffstat (limited to 'sw/source/filter/ww8/ww8par4.cxx')
-rw-r--r--sw/source/filter/ww8/ww8par4.cxx9
1 files changed, 7 insertions, 2 deletions
diff --git a/sw/source/filter/ww8/ww8par4.cxx b/sw/source/filter/ww8/ww8par4.cxx
index 22f75da2c2a7..5ef7a77f83d6 100644
--- a/sw/source/filter/ww8/ww8par4.cxx
+++ b/sw/source/filter/ww8/ww8par4.cxx
@@ -337,8 +337,11 @@ bool SwWW8ImplReader::ImportOleWMF(tools::SvRef<SotStorage> xSrc1,GDIMetaFile &r
SdrObject* SwWW8ImplReader::ImportOleBase( Graphic& rGraph,
const Graphic* pGrf, const SfxItemSet* pFlySet, const Rectangle& aVisArea )
{
- SdrObject* pRet = 0;
- OSL_ENSURE( m_pStg, "ohne storage geht hier fast gar nichts!" );
+ if (!m_pStg)
+ {
+ SAL_WARN("sw.ww8", "no storage for ole objects");
+ return nullptr;
+ }
::SetProgressState( m_nProgress, m_rDoc.GetDocShell() ); // Update
@@ -390,6 +393,8 @@ SdrObject* SwWW8ImplReader::ImportOleBase( Graphic& rGraph,
}
}
+ SdrObject* pRet = 0;
+
if (!(m_bIsHeader || m_bIsFooter))
{
//Can't put them in headers/footers :-(