diff options
author | Noel Power <noel.power@suse.com> | 2013-04-05 16:53:23 +0100 |
---|---|---|
committer | Noel Power <noel.power@suse.com> | 2013-04-05 16:53:23 +0100 |
commit | 70aff4a7f7abe0c768238733ca8900b746e60189 (patch) | |
tree | e6da10bba7c85377dd844bf42b9bfb6fcdc5313f | |
parent | 6076f94074959cdc1f1c74dc71b1fd4182a7f7e8 (diff) |
fix Worksheet.Cells by now allowing TableSheet range to change from updates
Change-Id: I19cd39ec58b778f4634258352676da7e04822b65
-rw-r--r-- | sc/inc/cellsuno.hxx | 2 | ||||
-rw-r--r-- | sc/source/ui/unoobj/cellsuno.cxx | 11 |
2 files changed, 12 insertions, 1 deletions
diff --git a/sc/inc/cellsuno.hxx b/sc/inc/cellsuno.hxx index 9bf0b3b7460a..664c3756e7ab 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 d33d8e47f5c0..ba5fa9c22c07 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) ); |