diff options
author | Kohei Yoshida <kohei.yoshida@suse.com> | 2012-01-07 19:09:24 -0500 |
---|---|---|
committer | Kohei Yoshida <kohei.yoshida@suse.com> | 2012-01-07 19:09:24 -0500 |
commit | 9bf924c04639f6c3210661716916382633b7b536 (patch) | |
tree | 31800a84c0d821c622102b7053806a36bc3fc7b1 /sc/source | |
parent | 779884e79046bbbb1eb173c6aa1324240d6d13a5 (diff) |
More unit test code for drawing objects. Found another bug & fixed it.
Inserting a new sheet would not update the anchored sheet index. Fixed.
Diffstat (limited to 'sc/source')
-rw-r--r-- | sc/source/core/data/drwlayer.cxx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sc/source/core/data/drwlayer.cxx b/sc/source/core/data/drwlayer.cxx index 69f289aa0465..087d5102a3e5 100644 --- a/sc/source/core/data/drwlayer.cxx +++ b/sc/source/core/data/drwlayer.cxx @@ -390,7 +390,8 @@ sal_Bool ScDrawLayer::ScAddPage( SCTAB nTab ) if (bRecording) AddCalcUndo(new SdrUndoNewPage(*pPage)); - return sal_True; // inserted + ResetTab(nTab, pDoc->GetTableCount()-1); + return true; // inserted } void ScDrawLayer::ScRemovePage( SCTAB nTab ) |