diff options
Diffstat (limited to 'svx/source/form/fmobj.cxx')
-rw-r--r-- | svx/source/form/fmobj.cxx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/svx/source/form/fmobj.cxx b/svx/source/form/fmobj.cxx index 7d7bd1bfde04..f70af85136de 100644 --- a/svx/source/form/fmobj.cxx +++ b/svx/source/form/fmobj.cxx @@ -431,7 +431,8 @@ namespace sReturn = sCurrentIndex; // travel up - if (::comphelper::query_interface(Reference< XInterface >(xParent),xChild)) + xChild.set(xParent, css::uno::UNO_QUERY); + if (xChild.is()) xParent = Reference< ::com::sun::star::container::XIndexAccess>(xChild->getParent(), UNO_QUERY); } |