summaryrefslogtreecommitdiff
path: root/chart2/source/view/axes/VAxisBase.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'chart2/source/view/axes/VAxisBase.cxx')
-rw-r--r--chart2/source/view/axes/VAxisBase.cxx16
1 files changed, 8 insertions, 8 deletions
diff --git a/chart2/source/view/axes/VAxisBase.cxx b/chart2/source/view/axes/VAxisBase.cxx
index 16d951bdb5ad..164a9147cc4f 100644
--- a/chart2/source/view/axes/VAxisBase.cxx
+++ b/chart2/source/view/axes/VAxisBase.cxx
@@ -212,17 +212,17 @@ size_t VAxisBase::getIndexOfLongestLabel( const uno::Sequence<OUString>& rLabels
void VAxisBase::removeTextShapesFromTicks()
{
- if( m_xTextTarget.is() )
+ if( !m_xTextTarget.is() )
+ return;
+
+ for (auto & tickInfos : m_aAllTickInfos)
{
- for (auto & tickInfos : m_aAllTickInfos)
+ for (auto & tickInfo : tickInfos)
{
- for (auto & tickInfo : tickInfos)
+ if(tickInfo.xTextShape.is())
{
- if(tickInfo.xTextShape.is())
- {
- m_xTextTarget->remove(tickInfo.xTextShape);
- tickInfo.xTextShape = nullptr;
- }
+ m_xTextTarget->remove(tickInfo.xTextShape);
+ tickInfo.xTextShape = nullptr;
}
}
}