diff options
-rw-r--r-- | chart2/source/view/axes/VPolarGrid.cxx | 10 | ||||
-rw-r--r-- | extensions/source/propctrlr/standardcontrol.cxx | 2 | ||||
-rw-r--r-- | sc/source/ui/vba/vbarange.cxx | 2 |
3 files changed, 4 insertions, 10 deletions
diff --git a/chart2/source/view/axes/VPolarGrid.cxx b/chart2/source/view/axes/VPolarGrid.cxx index 1d9a3cbb712e..f3183011b5d8 100644 --- a/chart2/source/view/axes/VPolarGrid.cxx +++ b/chart2/source/view/axes/VPolarGrid.cxx @@ -131,19 +131,13 @@ void VPolarGrid::create2DAngleGrid( const Reference< drawing::XShapes >& xLogicT double fLogicInnerRadius = m_pPosHelper->getInnerLogicRadius(); double fLogicOuterRadius = m_pPosHelper->getOuterLogicRadius(); - double fLogicZ = 1.0;//as defined sal_Int32 nLinePropertiesCount = rLinePropertiesList.size(); ::std::vector< ::std::vector< TickInfo > >::iterator aDepthIter = rAngleTickInfos.begin(); - sal_Int32 nDepth=0; - /* - //no subgrids so far for polar angle grid (need different radii) - const ::std::vector< ::std::vector< TickInfo > >::const_iterator aDepthEnd = rAngleTickInfos.end(); - for( ; aDepthIter != aDepthEnd && nDepth < nLinePropertiesCount - ; aDepthIter++, nDepth++ ) - */ if(nLinePropertiesCount) { + double fLogicZ = 1.0;//as defined + sal_Int32 nDepth=0; //create axis main lines drawing::PointSequenceSequence aAllPoints; ::std::vector< TickInfo >::iterator aTickIter = (*aDepthIter).begin(); diff --git a/extensions/source/propctrlr/standardcontrol.cxx b/extensions/source/propctrlr/standardcontrol.cxx index 6f5c934bc92c..b065ee6d899e 100644 --- a/extensions/source/propctrlr/standardcontrol.cxx +++ b/extensions/source/propctrlr/standardcontrol.cxx @@ -1260,7 +1260,6 @@ namespace pcr long DropDownEditControl::FindPos(long nSinglePos) { long nPos=0; - long nDiff=0; String aOutput; String aStr=m_pFloatingEdit->getEdit()->GetText(); String aStr1 = GetText(); @@ -1272,6 +1271,7 @@ namespace pcr if (aStr.Len()>0) { + long nDiff=0; sal_Int32 nCount = aStr.GetTokenCount('\n'); String aInput = aStr.GetToken(0,'\n' ); diff --git a/sc/source/ui/vba/vbarange.cxx b/sc/source/ui/vba/vbarange.cxx index 3e26ff632eeb..7252cc67553b 100644 --- a/sc/source/ui/vba/vbarange.cxx +++ b/sc/source/ui/vba/vbarange.cxx @@ -5488,10 +5488,10 @@ ScVbaRange::AutoFill( const uno::Reference< excel::XRange >& Destination, const // default to include the number of Rows in the source range; SCCOLROW nSourceCount = ( sourceRange.aEnd.Row() - sourceRange.aStart.Row() ) + 1; - SCCOLROW nCount = 0; if ( sourceRange != destRange ) { + SCCOLROW nCount = 0; // Find direction of fill, vertical or horizontal if ( sourceRange.aStart == destRange.aStart ) { |