check the class of a nested user type found by name in SbiImage::Load
Signed-off-by: Caolán McNamara <caolan.mcnamara@collabora.com> Change-Id: Ic9215a25384e07e6c082efbeb3b79dc4b56d158c Reviewed-on: https://gerrit.collaboraoffice.com/c/online/+/13657 Reviewed-by: Noel Grandin <noel.grandin@collabora.com> Tested-by: Jenkins CPCI <releng@collaboraoffice.com> (cherry picked from commit 48162866845dd588ec0a85a9e9e93ed4477d7771) Reviewed-on: https://gerrit.libreoffice.org/c/core/+/211727 Tested-by: Jenkins Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
This commit is contained in:
committed by
Xisco Fauli
parent
de88188e2c
commit
0f2d897059
@@ -320,7 +320,7 @@ bool SbiImage::Load( SvStream& r, sal_uInt32& nVersion )
|
||||
// nested user defined types
|
||||
// declared before use, so it is ok to reference it by name on load
|
||||
OUString aNestedTypeName = r.ReadUniOrByteString(eCharSet);
|
||||
SbxObject* pNestedTypeObj = static_cast< SbxObject* >( rTypes->Find( aNestedTypeName, SbxClassType::Object ) );
|
||||
SbxObject* pNestedTypeObj = dynamic_cast< SbxObject* >( rTypes->Find( aNestedTypeName, SbxClassType::Object ) );
|
||||
if (pNestedTypeObj)
|
||||
{
|
||||
SbxObjectRef pCloneObj = cloneTypeObjectImpl( *pNestedTypeObj );
|
||||
|
||||
Reference in New Issue
Block a user