summaryrefslogtreecommitdiff
path: root/sc/source/ui/unoobj
diff options
context:
space:
mode:
authorNoel Power <noel.power@suse.com>2013-04-05 16:53:23 +0100
committerNoel Power <noel.power@suse.com>2013-04-05 17:15:01 +0100
commit1d633d54bde1c1ae74ae51fcf02d3eced160c1e3 (patch)
treea472bcc150b6fce1ca6db62096701a38b520a0cf /sc/source/ui/unoobj
parent5b8377f80c7618a770900848e205a487d846c66e (diff)
fix Worksheet.Cells by not allowing TableSheet range to change from updates
ScTableSheetObj's own range gets updated via ScCellRangesObj::RefChanged, this must be wrong 'cause the range of a sheet is fixed right ? Change-Id: I19cd39ec58b778f4634258352676da7e04822b65
Diffstat (limited to 'sc/source/ui/unoobj')
-rw-r--r--sc/source/ui/unoobj/cellsuno.cxx11
1 files changed, 11 insertions, 0 deletions
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) );