Simplify a bit
Change-Id: Ib3656e4ad830f5987222d81e9b33140cb9f2e430 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/198337 Tested-by: Jenkins Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
This commit is contained in:
@@ -781,9 +781,11 @@ void SdrObjList::ImplReformatAllEdgeObjects(const SdrObjList& rObjList)
|
||||
for(size_t nIdx(0), nCount(rObjList.GetObjCount()); nIdx < nCount; ++nIdx)
|
||||
{
|
||||
SdrObject* pSdrObject(rObjList.GetObjectForNavigationPosition(nIdx));
|
||||
const SdrObjList* pChildren(pSdrObject->getChildrenOfSdrObject());
|
||||
const bool bIsGroup(nullptr != pChildren);
|
||||
if(!bIsGroup)
|
||||
if (const SdrObjList* pChildren = pSdrObject->getChildrenOfSdrObject())
|
||||
{
|
||||
ImplReformatAllEdgeObjects(*pChildren);
|
||||
}
|
||||
else
|
||||
{
|
||||
// Check IsVirtualObj because sometimes we get SwDrawVirtObj here
|
||||
if (pSdrObject->GetObjIdentifier() == SdrObjKind::Edge
|
||||
@@ -793,10 +795,6 @@ void SdrObjList::ImplReformatAllEdgeObjects(const SdrObjList& rObjList)
|
||||
pSdrEdgeObj->Reformat();
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
ImplReformatAllEdgeObjects(*pChildren);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user