Commits

Anonymous committed e7622fd

Removed my mods on the number format for axis. The baseline code now works better.

  • Participants
  • Parent commits 76601f1

Comments (0)

Files changed (1)

File chart2/source/view/main/ChartView.cxx

                     if( nDimensionIndex == 0 )
                         aRoleToMatch = C2U("values-x");
                     Sequence< Reference< XChartType > > aChartTypes( xCTCnt->getChartTypes());
-                    sal_Int32 nCTCount = aChartTypes.getLength();
-                    if (nCTCount > 0)
-                        // When multiple chart types share the same axis, always 
-                        // use the first chart type for automatic detection of
-                        // desired number format.  This is in line with the
-                        // fact that the axis type is also determined from the
-                        // first chart type alone.
-                        nCTCount = 1;
-                    for( sal_Int32 nCTIdx=0; nCTIdx<nCTCount; ++nCTIdx )
+                    for( sal_Int32 nCTIdx=0; nCTIdx<aChartTypes.getLength(); ++nCTIdx )
                     {
                         if( nDimensionIndex != 0 )
                             aRoleToMatch = ChartTypeHelper::getRoleOfSequenceForYAxisNumberFormatDetection( aChartTypes[nCTIdx] );