summaryrefslogtreecommitdiff
path: root/oox/source/vml
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2020-01-22 14:44:01 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2020-01-22 15:18:55 +0100
commita5fd2a21b25d49ee7c60041341aefaad6c920b09 (patch)
treeafcaffb5aaae8a54976fcb880bc75ee532c4b03a /oox/source/vml
parentc89b279f0616c5bccc9711c50f91d33eb5fc9e89 (diff)
avoid some unnecessary log warning messages
Change-Id: I72f839800b749bd5c90faea9f2fed25dd938bca4 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/87187 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'oox/source/vml')
-rw-r--r--oox/source/vml/vmldrawing.cxx4
1 files changed, 3 insertions, 1 deletions
diff --git a/oox/source/vml/vmldrawing.cxx b/oox/source/vml/vmldrawing.cxx
index 058ee5c91815..53c1e6aeed42 100644
--- a/oox/source/vml/vmldrawing.cxx
+++ b/oox/source/vml/vmldrawing.cxx
@@ -155,7 +155,9 @@ void Drawing::convertAndInsert() const
{
try
{
- Reference< XControlShape > xCtrlShape( xShapes->getByIndex(i), UNO_QUERY_THROW );
+ Reference< XControlShape > xCtrlShape( xShapes->getByIndex(i), UNO_QUERY );
+ if (!xCtrlShape.is())
+ continue;
Reference< XControlModel > xCtrlModel( xCtrlShape->getControl(), UNO_SET_THROW );
Reference< XServiceInfo > xModelSI (xCtrlModel, UNO_QUERY_THROW );
Reference< XPropertySet > aProps( xCtrlModel, UNO_QUERY_THROW );