diff options
Diffstat (limited to 'svx/source/form/fmobj.cxx')
-rw-r--r-- | svx/source/form/fmobj.cxx | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/svx/source/form/fmobj.cxx b/svx/source/form/fmobj.cxx index 8c481a077bc8..0ce45b66c130 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); } @@ -652,7 +653,7 @@ bool FmFormObj::EndCreate( SdrDragStat& rStat, SdrCreateCmd eCmd ) xFormToInsertInto.set( xParentForm, UNO_QUERY_THROW ); } - rPage.GetImpl().setUniqueName( xContent, xParentForm ); + FmFormPageImpl::setUniqueName( xContent, xParentForm ); if ( xFormToInsertInto.is() ) xFormToInsertInto->insertByIndex( xFormToInsertInto->getCount(), makeAny( xContent ) ); |