[Libreoffice-commits] core.git: chart2/source

Julien Nabet serval2412 at yahoo.fr
Mon Jun 3 13:59:58 PDT 2013


 chart2/source/tools/ChartTypeHelper.cxx |    3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

New commits:
commit 417021ead14bf960a6f0a897cc4c1533f479210d
Author: Julien Nabet <serval2412 at yahoo.fr>
Date:   Mon Jun 3 22:59:28 2013 +0200

    Fix variable value reassigned before old value used
    
    Change-Id: Iac028806fd306253fe0e4b407302ff66f853b49c

diff --git a/chart2/source/tools/ChartTypeHelper.cxx b/chart2/source/tools/ChartTypeHelper.cxx
index 658b6b0..6cfc333 100644
--- a/chart2/source/tools/ChartTypeHelper.cxx
+++ b/chart2/source/tools/ChartTypeHelper.cxx
@@ -574,11 +574,10 @@ uno::Sequence < sal_Int32 > ChartTypeHelper::getSupportedMissingValueTreatments(
     if( !xChartType.is() )
         return aRet;
 
-    bool bStacked = false;
     bool bFound=false;
     bool bAmbiguous=false;
     StackMode eStackMode = DiagramHelper::getStackModeFromChartType( xChartType, bFound, bAmbiguous, 0 );
-    bStacked = bFound && (StackMode_Y_STACKED == eStackMode);
+    bool bStacked = bFound && (StackMode_Y_STACKED == eStackMode);
 
     OUString aChartTypeName = xChartType->getChartType();
     if( aChartTypeName.match(CHART2_SERVICE_NAME_CHARTTYPE_COLUMN) ||


More information about the Libreoffice-commits mailing list