diff options
author | Miklos Vajna <vmiklos@suse.cz> | 2012-03-05 10:01:54 +0100 |
---|---|---|
committer | Miklos Vajna <vmiklos@suse.cz> | 2012-03-05 10:09:26 +0100 |
commit | 4f56b20b567fd6fc0b3c428c8e3811eae7f2e679 (patch) | |
tree | f61498bbe1ef4fcb4719bd4a20190aa57735c9d5 /sw | |
parent | i#118986 RTF: reduce memory usage when exporting large graphics (diff) | |
download | core-4f56b20b567fd6fc0b3c428c8e3811eae7f2e679.tar.gz core-4f56b20b567fd6fc0b3c428c8e3811eae7f2e679.zip |
RtfAttributeOutput::FlyFrameGraphic: don't try to compare a null pointer
Diffstat (limited to 'sw')
-rw-r--r-- | sw/source/filter/ww8/rtfattributeoutput.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sw/source/filter/ww8/rtfattributeoutput.cxx b/sw/source/filter/ww8/rtfattributeoutput.cxx index a0c3b0ba37a6..b9afd1b22083 100644 --- a/sw/source/filter/ww8/rtfattributeoutput.cxx +++ b/sw/source/filter/ww8/rtfattributeoutput.cxx @@ -3453,7 +3453,7 @@ void RtfAttributeOutput::FlyFrameGraphic( const SwFlyFrmFmt* pFlyFrmFmt, const S the wmf format wrapped in nonshppict, so as to keep wordpad happy. If its a wmf already then we don't need any such wrapping */ - bool bIsWMF = std::strcmp(pBLIPType, OOO_STRING_SVTOOLS_RTF_WMETAFILE) == 0; + bool bIsWMF = pBLIPType && std::strcmp(pBLIPType, OOO_STRING_SVTOOLS_RTF_WMETAFILE) == 0; if (!bIsWMF) m_rExport.Strm() << "{" OOO_STRING_SVTOOLS_RTF_IGNORE OOO_STRING_SVTOOLS_RTF_SHPPICT; |