summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarkus Mohrhard <markus.mohrhard@googlemail.com>2012-03-04 17:06:49 +0100
committerMarkus Mohrhard <markus.mohrhard@googlemail.com>2012-03-04 17:10:51 +0100
commita769fd1ec076b61c1ce2f84da87283cc637dd5d5 (patch)
treed406ddb7c4d7eba933784c19fd0ce768cc94d6b1
parentdon't crash for empty input data in charts, fdo#46885 (diff)
downloadcore-a769fd1ec076b61c1ce2f84da87283cc637dd5d5.tar.gz
core-a769fd1ec076b61c1ce2f84da87283cc637dd5d5.zip
correctly set the position of the axis labels, related fdo#44832
There are still some more issues but at least they are now correctly located in the right position All advanced attributes are not yet applied.
-rw-r--r--chart2/source/view/axes/VCartesianAxis.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/chart2/source/view/axes/VCartesianAxis.cxx b/chart2/source/view/axes/VCartesianAxis.cxx
index fa20c2e1053a..a6547ef84aae 100644
--- a/chart2/source/view/axes/VCartesianAxis.cxx
+++ b/chart2/source/view/axes/VCartesianAxis.cxx
@@ -473,11 +473,11 @@ void VCartesianAxis::createAllTickInfosFromComplexCategories( ::std::vector< ::s
rAllTickInfos.clear();
sal_Int32 nLevel=0;
sal_Int32 nLevelCount = m_aAxisProperties.m_pExplicitCategoriesProvider->getCategoryLevelCount();
+ sal_Int32 nCatIndex = 0;
for( ; nLevel<nLevelCount; nLevel++ )
{
::std::vector< TickInfo > aTickInfoVector;
std::vector< ComplexCategory > aComplexCategories( m_aAxisProperties.m_pExplicitCategoriesProvider->getCategoriesByLevel( nLevel ) );
- sal_Int32 nCatIndex = 0;
std::vector< ComplexCategory >::const_iterator aIt(aComplexCategories.begin());
std::vector< ComplexCategory >::const_iterator aEnd(aComplexCategories.end());
for(;aIt!=aEnd;++aIt)