summaryrefslogtreecommitdiff
path: root/sc/source/ui/vba
diff options
context:
space:
mode:
authorJulien Nabet <serval2412@yahoo.fr>2011-09-10 08:11:19 +0200
committerJulien Nabet <serval2412@yahoo.fr>2011-09-10 08:11:19 +0200
commit581a04f2ce1db710186f2c11585eadd1ff32440d (patch)
tree80ae127ab147116e850320ad52cb4b8047521698 /sc/source/ui/vba
parentda25c271cec8721d2ae5907da1de9fdcf7e2eb4c (diff)
Some cppcheck cleaning
Diffstat (limited to 'sc/source/ui/vba')
-rw-r--r--sc/source/ui/vba/vbarange.cxx2
1 files changed, 1 insertions, 1 deletions
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 )
{