[Libreoffice-commits] core.git: oox/source

Caolán McNamara caolanm at redhat.com
Wed Dec 23 11:12:26 PST 2015


 oox/source/export/shapes.cxx |    6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

New commits:
commit 0b901a9760a22bdc6f83829b077c30ec08613e17
Author: Caolán McNamara <caolanm at redhat.com>
Date:   Wed Dec 23 19:10:34 2015 +0000

    crashtesting: export of ooo40765-1.sxw to docx fails
    
    Change-Id: I57d5e085e612908e7a22f444c771ec9fa45485ce

diff --git a/oox/source/export/shapes.cxx b/oox/source/export/shapes.cxx
index 364822f..9fcff75 100644
--- a/oox/source/export/shapes.cxx
+++ b/oox/source/export/shapes.cxx
@@ -306,11 +306,11 @@ uno::Reference<io::XInputStream> GetOLEObjectStream(
     try
     {
         uno::Reference<document::XStorageBasedDocument> const xParent(
-            uno::Reference<container::XChild>(xObj, uno::UNO_QUERY)->getParent(),
-            uno::UNO_QUERY);
+            uno::Reference<container::XChild>(xObj, uno::UNO_QUERY_THROW)->getParent(),
+            uno::UNO_QUERY_THROW);
         uno::Reference<embed::XStorage> const xParentStorage(xParent->getDocumentStorage());
         OUString const entryName(
-            uno::Reference<embed::XEmbedPersist>(xObj, uno::UNO_QUERY)->getEntryName());
+            uno::Reference<embed::XEmbedPersist>(xObj, uno::UNO_QUERY_THROW)->getEntryName());
 
         if (xParentStorage->isStreamElement(entryName))
         {


More information about the Libreoffice-commits mailing list