summaryrefslogtreecommitdiff
path: root/oox/source/drawingml/diagram/diagram.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'oox/source/drawingml/diagram/diagram.cxx')
-rw-r--r--oox/source/drawingml/diagram/diagram.cxx7
1 files changed, 5 insertions, 2 deletions
diff --git a/oox/source/drawingml/diagram/diagram.cxx b/oox/source/drawingml/diagram/diagram.cxx
index 2f33d9a79002..e0a8256e997d 100644
--- a/oox/source/drawingml/diagram/diagram.cxx
+++ b/oox/source/drawingml/diagram/diagram.cxx
@@ -65,8 +65,9 @@ void Point::dump() const
} // dgm namespace
-DiagramData::DiagramData()
- : mpFillProperties( new FillProperties )
+DiagramData::DiagramData() :
+ mpFillProperties( new FillProperties ),
+ mnMaxDepth(0)
{
}
@@ -298,6 +299,8 @@ void Diagram::build( )
const sal_Int32 nDepth=calcDepth(aPresOfNodeIterCalcLevel->first,
getData()->getConnections());
aPresOfNodeIterCalcLevel->second = nDepth != 0 ? nDepth : -1;
+ if (nDepth > getData()->getMaxDepth())
+ getData()->setMaxDepth(nDepth);
++aPresOfNodeIterCalcLevel;
}