[Libreoffice-commits] .: sc/source

Noel Power noelp at kemper.freedesktop.org
Thu Jun 7 01:37:02 PDT 2012


 sc/source/ui/vba/vbarange.cxx |    7 ++-----
 1 file changed, 2 insertions(+), 5 deletions(-)

New commits:
commit 2bce4c76d5f05d92ffd987c25b7e492d5a2f309b
Author: Kevin Hunter <hunteke at earlham.edu>
Date:   Thu Jun 7 09:35:05 2012 +0100

    fix unused pDocSh variable
    
    Change-Id: Iab65ee69a7a653835073f7d7dc4084e252ccd782

diff --git a/sc/source/ui/vba/vbarange.cxx b/sc/source/ui/vba/vbarange.cxx
index 958888e..bdedeab 100644
--- a/sc/source/ui/vba/vbarange.cxx
+++ b/sc/source/ui/vba/vbarange.cxx
@@ -5530,15 +5530,10 @@ ScVbaRange::AutoFill(  const uno::Reference< excel::XRange >& Destination, const
             }
         }
     }
-    ScDocShell* pDocSh= excel::GetDocShellFromRange( mxRange );
 
     FillCmd eCmd = FILL_AUTO;
     FillDateCmd eDateCmd = FILL_DAY;
 
-#ifdef VBA_OOBUILD_HACK
-    double fEndValue =  MAXDOUBLE;
-#endif
-
     if ( Type.hasValue() )
     {
         sal_Int16 nFillType = excel::XlAutoFillType::xlFillDefault;
@@ -5581,6 +5576,8 @@ ScVbaRange::AutoFill(  const uno::Reference< excel::XRange >& Destination, const
         }
     }
 #ifdef VBA_OOBUILD_HACK
+    double fEndValue =  MAXDOUBLE;
+    ScDocShell* pDocSh = excel::GetDocShellFromRange( mxRange );
     pDocSh->GetDocFunc().FillAuto( aSourceRange, NULL, eDir, eCmd, eDateCmd,
                                    nCount, fStep, fEndValue, sal_True, sal_True );
 #endif


More information about the Libreoffice-commits mailing list