summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sc/inc/cellsuno.hxx2
-rw-r--r--sc/source/ui/unoobj/cellsuno.cxx11
2 files changed, 12 insertions, 1 deletions
diff --git a/sc/inc/cellsuno.hxx b/sc/inc/cellsuno.hxx
index 687105cef0fd..6aa36e207401 100644
--- a/sc/inc/cellsuno.hxx
+++ b/sc/inc/cellsuno.hxx
@@ -1025,7 +1025,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 2c0c2b71e361..1cb7552f6116 100644
--- a/sc/source/ui/unoobj/cellsuno.cxx
+++ b/sc/source/ui/unoobj/cellsuno.cxx
@@ -6959,6 +6959,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) );