summaryrefslogtreecommitdiff
path: root/filter
diff options
context:
space:
mode:
authorDavid Tardon <dtardon@redhat.com>2012-07-23 10:00:32 +0200
committerDavid Tardon <dtardon@redhat.com>2012-07-23 10:35:52 +0200
commitd067102af8cbe1f95fb2f0458df891bd38210723 (patch)
tree3a75ebcee71e9fb9acdff14b6f52579c4c0aa2a4 /filter
parent6aff9717426db96f41ab04cd96da2b5d074625e1 (diff)
fdo#52015 do not crash importing connector to table from .ppt
Change-Id: Ib7d7860cd422b28b6987f94da0a9c664ff7dfde1
Diffstat (limited to 'filter')
-rw-r--r--filter/source/msfilter/svdfppt.cxx8
1 files changed, 8 insertions, 0 deletions
diff --git a/filter/source/msfilter/svdfppt.cxx b/filter/source/msfilter/svdfppt.cxx
index 63dc37238aff..c94c132b89e1 100644
--- a/filter/source/msfilter/svdfppt.cxx
+++ b/filter/source/msfilter/svdfppt.cxx
@@ -7460,6 +7460,14 @@ SdrObject* SdrPowerPointImport::CreateTable( SdrObject* pGroup, sal_uInt32* pTab
for ( size_t i = 0; i < pSolverContainer->aCList.size(); ++i )
{
SvxMSDffConnectorRule* pPtr = pSolverContainer->aCList[ i ];
+
+ // check connections to the group object
+ if ( pPtr->pAObj == pGroup )
+ pPtr->pAObj = NULL;
+ if ( pPtr->pBObj == pGroup )
+ pPtr->pBObj = NULL;
+
+ // check connections to all its subobjects
SdrObjListIter aIter( *pGroup, IM_DEEPWITHGROUPS );
while( aIter.IsMore() )
{