[Libreoffice-commits] .: sc/source
Thomas Arnhold
tarnhold at kemper.freedesktop.org
Wed Feb 2 03:32:52 PST 2011
sc/source/ui/vba/makefile.mk | 5 ++++-
sc/source/ui/vba/vbarange.cxx | 2 +-
2 files changed, 5 insertions(+), 2 deletions(-)
New commits:
commit 1024dbd1f9121b91c8aa6586db62ed303849c5d8
Author: Thomas Arnhold <thomas at arnhold.org>
Date: Wed Feb 2 12:30:22 2011 +0100
Fix CDEFS definition.
Set it after including settings.mk because this file resets CDEFS.
This one enables VBA_OOBUILD_HACK, so we need nCount in a higher scope.
diff --git a/sc/source/ui/vba/makefile.mk b/sc/source/ui/vba/makefile.mk
index ba50cba..3719e08 100644
--- a/sc/source/ui/vba/makefile.mk
+++ b/sc/source/ui/vba/makefile.mk
@@ -31,7 +31,7 @@ PRJNAME=sc
TARGET=vbaobj
ENABLE_EXCEPTIONS=TRUE
VISIBILITY_HIDDEN=TRUE
-CDEFS+=-DVBA_OOBUILD_HACK
+
# --- Settings -----------------------------------------------------
.INCLUDE : settings.mk
@@ -41,6 +41,9 @@ DLLPRE =
dummy:
@echo "not building vba..."
.ENDIF
+
+CDEFS+=-DVBA_OOBUILD_HACK
+
.IF "$(L10N_framework)"==""
INCPRE=$(INCCOM)$/$(TARGET)
diff --git a/sc/source/ui/vba/vbarange.cxx b/sc/source/ui/vba/vbarange.cxx
index c161aa1..f612e9f 100644
--- a/sc/source/ui/vba/vbarange.cxx
+++ b/sc/source/ui/vba/vbarange.cxx
@@ -5390,10 +5390,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 )
{
More information about the Libreoffice-commits
mailing list