summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarkus Mohrhard <markus.mohrhard@googlemail.com>2012-03-10 00:49:50 +0100
committerMarkus Mohrhard <markus.mohrhard@googlemail.com>2012-03-10 05:23:54 +0100
commit2ddf3a73030c04f5060654894dc5a6543cbe2ed0 (patch)
tree1ff189c4bf28ac49ed001b1ba25914b59ce55a67
parent137b53e0e2763d41c43e62ecc85b38d7f3cb71f7 (diff)
add two accidently removed return statements
-rw-r--r--chart2/source/view/axes/VCartesianAxis.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/chart2/source/view/axes/VCartesianAxis.cxx b/chart2/source/view/axes/VCartesianAxis.cxx
index 264450d3bda3..f56cae0669b0 100644
--- a/chart2/source/view/axes/VCartesianAxis.cxx
+++ b/chart2/source/view/axes/VCartesianAxis.cxx
@@ -556,7 +556,7 @@ void VCartesianAxis::createAllTickInfos( ::std::vector< ::std::vector< TickInfo
TickIter* VCartesianAxis::createLabelTickIterator( sal_Int32 nTextLevel )
{
if( nTextLevel>=0 && nTextLevel < static_cast< sal_Int32 >(m_aAllTickInfos.size()) )
- new PureTickIter( m_aAllTickInfos[nTextLevel] );
+ return new PureTickIter( m_aAllTickInfos[nTextLevel] );
return NULL;
}
@@ -573,7 +573,7 @@ TickIter* VCartesianAxis::createMaximumLabelTickIterator( sal_Int32 nTextLevel )
if( !m_aAllTickInfos.empty() )
{
sal_Int32 nLongestLabelIndex = m_bUseTextLabels ? this->getIndexOfLongestLabel( m_aTextLabels ) : 0;
- new MaxLabelTickIter( m_aAllTickInfos[0], nLongestLabelIndex );
+ return new MaxLabelTickIter( m_aAllTickInfos[0], nLongestLabelIndex );
}
}
}