[Libreoffice-commits] core.git: Branch 'distro/suse/suse-3.6' - sc/inc sc/source

Noel Power noel.power at suse.com
Fri Apr 5 08:54:54 PDT 2013


 sc/inc/cellsuno.hxx              |    2 +-
 sc/source/ui/unoobj/cellsuno.cxx |   11 +++++++++++
 2 files changed, 12 insertions(+), 1 deletion(-)

New commits:
commit 70aff4a7f7abe0c768238733ca8900b746e60189
Author: Noel Power <noel.power at suse.com>
Date:   Fri Apr 5 16:53:23 2013 +0100

    fix Worksheet.Cells by now allowing TableSheet range to change from updates
    
    Change-Id: I19cd39ec58b778f4634258352676da7e04822b65

diff --git a/sc/inc/cellsuno.hxx b/sc/inc/cellsuno.hxx
index 9bf0b3b..664c375 100644
--- a/sc/inc/cellsuno.hxx
+++ b/sc/inc/cellsuno.hxx
@@ -1037,7 +1037,7 @@ protected:
 public:
                             ScTableSheetObj(ScDocShell* pDocSh, SCTAB nTab);
     virtual                 ~ScTableSheetObj();
-
+    virtual void            RefChanged();
     void                    InitInsertSheet(ScDocShell* pDocSh, SCTAB nTab);
 
     virtual ::com::sun::star::uno::Any SAL_CALL queryInterface(
diff --git a/sc/source/ui/unoobj/cellsuno.cxx b/sc/source/ui/unoobj/cellsuno.cxx
index d33d8e4..ba5fa9c 100644
--- a/sc/source/ui/unoobj/cellsuno.cxx
+++ b/sc/source/ui/unoobj/cellsuno.cxx
@@ -6914,6 +6914,17 @@ ScTableSheetObj::~ScTableSheetObj()
 {
 }
 
+void ScTableSheetObj::RefChanged()
+{
+    // skip calling immediate base
+    // class ScCellRangeObj::RefChanged as
+    // it changes the Sheets range ( which shouldn't
+    // happen ) - hmm maybe we don't even need to
+    // call ScCellRangesBase::RefChanged() :/
+
+    ScCellRangesBase::RefChanged();
+}
+
 void ScTableSheetObj::InitInsertSheet(ScDocShell* pDocSh, SCTAB nTab)
 {
     InitInsertRange( pDocSh, ScRange(0,0,nTab, MAXCOL,MAXROW,nTab) );


More information about the Libreoffice-commits mailing list