diff options
author | Caolán McNamara <caolanm@redhat.com> | 2017-08-28 17:09:06 +0100 |
---|---|---|
committer | Tamás Zolnai <tamas.zolnai@collabora.com> | 2017-08-28 21:12:22 +0200 |
commit | 21a6cb83a421aa80fbb90040742bac66ef00edb5 (patch) | |
tree | fd5c345f899b16674cca3c23a13995fc1e235a1c /filter | |
parent | 48da72b25b41614efd0689c20ef51ce420d53a70 (diff) |
crashtesting: failure on exporting tdf95568-1.ots to xlsx
since...
commit c0cc02e2934aeb12dda44818955e5964496c186a
Date: Thu Aug 17 21:47:22 2017 +0200
tdf#50097: DOCX: export form controls as MSO ActiveX controls
Change-Id: I55f1dcbe454e696df71a7656c796e36e91c42762
Reviewed-on: https://gerrit.libreoffice.org/41651
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Tamás Zolnai <tamas.zolnai@collabora.com>
Tested-by: Tamás Zolnai <tamas.zolnai@collabora.com>
(cherry picked from commit 317e3d43c937e7d3bff61b100c08f04c837c4d25)
Diffstat (limited to 'filter')
-rw-r--r-- | filter/source/msfilter/eschesdo.cxx | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/filter/source/msfilter/eschesdo.cxx b/filter/source/msfilter/eschesdo.cxx index ba28dbfa48d5..d7be855f911b 100644 --- a/filter/source/msfilter/eschesdo.cxx +++ b/filter/source/msfilter/eschesdo.cxx @@ -429,9 +429,13 @@ sal_uInt32 ImplEESdrWriter::ImplWriteShape( ImplEESdrObject& rObj, const Reference< XPropertySet > xPropSet(rObj.mXPropSet, UNO_QUERY); if(xPropSet.is()) { - text::TextContentAnchorType eAnchorType; - xPropSet->getPropertyValue("AnchorType") >>= eAnchorType; - bInline = eAnchorType == text::TextContentAnchorType_AS_CHARACTER; + const Reference<XPropertySetInfo> xPropInfo = xPropSet->getPropertySetInfo(); + if (xPropInfo.is() && xPropInfo->hasPropertyByName("AnchorType")) + { + text::TextContentAnchorType eAnchorType; + xPropSet->getPropertyValue("AnchorType") >>= eAnchorType; + bInline = eAnchorType == text::TextContentAnchorType_AS_CHARACTER; + } } if(bInline) |