summaryrefslogtreecommitdiff
path: root/svx/source/svdraw/svddrgmt.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'svx/source/svdraw/svddrgmt.cxx')
-rw-r--r--svx/source/svdraw/svddrgmt.cxx33
1 files changed, 15 insertions, 18 deletions
diff --git a/svx/source/svdraw/svddrgmt.cxx b/svx/source/svdraw/svddrgmt.cxx
index 13ee857e655f..4fd4a177fc2b 100644
--- a/svx/source/svdraw/svddrgmt.cxx
+++ b/svx/source/svdraw/svddrgmt.cxx
@@ -730,32 +730,29 @@ void SdrDragMethod::CreateOverlayGeometry(
}
// #i54102# if there are edges, reconnect their ends to the corresponding clones (if found)
- if(!aEdges.empty())
+ for(SdrEdgeObj* pSdrEdgeObj: aEdges)
{
- for(SdrEdgeObj* pSdrEdgeObj: aEdges)
+ SdrObject* pConnectedTo = pSdrEdgeObj->GetConnectedNode(true);
+
+ if(pConnectedTo)
{
- SdrObject* pConnectedTo = pSdrEdgeObj->GetConnectedNode(true);
+ SdrObjectAndCloneMap::iterator aEntry = aOriginalAndClones.find(pConnectedTo);
- if(pConnectedTo)
+ if(aEntry != aOriginalAndClones.end())
{
- SdrObjectAndCloneMap::iterator aEntry = aOriginalAndClones.find(pConnectedTo);
-
- if(aEntry != aOriginalAndClones.end())
- {
- pSdrEdgeObj->ConnectToNode(true, aEntry->second);
- }
+ pSdrEdgeObj->ConnectToNode(true, aEntry->second);
}
+ }
- pConnectedTo = pSdrEdgeObj->GetConnectedNode(false);
+ pConnectedTo = pSdrEdgeObj->GetConnectedNode(false);
- if(pConnectedTo)
- {
- SdrObjectAndCloneMap::iterator aEntry = aOriginalAndClones.find(pConnectedTo);
+ if(pConnectedTo)
+ {
+ SdrObjectAndCloneMap::iterator aEntry = aOriginalAndClones.find(pConnectedTo);
- if(aEntry != aOriginalAndClones.end())
- {
- pSdrEdgeObj->ConnectToNode(false, aEntry->second);
- }
+ if(aEntry != aOriginalAndClones.end())
+ {
+ pSdrEdgeObj->ConnectToNode(false, aEntry->second);
}
}
}