summaryrefslogtreecommitdiff
path: root/sc/source/ui/docshell/docsh5.cxx
diff options
context:
space:
mode:
authorJens-Heiner Rechtien <hr@openoffice.org>2008-11-20 13:27:25 +0000
committerJens-Heiner Rechtien <hr@openoffice.org>2008-11-20 13:27:25 +0000
commitefae0f61f1e45db66b9e98eb72f6e0022ec8353f (patch)
tree680b3b367ae2a23ade4d1ab095124012c540d443 /sc/source/ui/docshell/docsh5.cxx
parent77588e26942ad545eb1aa98455c2ecec15b1edd0 (diff)
CWS-TOOLING: integrate CWS calc46_DEV300
Diffstat (limited to 'sc/source/ui/docshell/docsh5.cxx')
-rw-r--r--sc/source/ui/docshell/docsh5.cxx4
1 files changed, 4 insertions, 0 deletions
diff --git a/sc/source/ui/docshell/docsh5.cxx b/sc/source/ui/docshell/docsh5.cxx
index 8d3113b73385..d3b6bb55dcdd 100644
--- a/sc/source/ui/docshell/docsh5.cxx
+++ b/sc/source/ui/docshell/docsh5.cxx
@@ -806,6 +806,10 @@ BOOL ScDocShell::MoveTable( SCTAB nSrcTab, SCTAB nDestTab, BOOL bCopy, BOOL bRec
{
ScDocShellModificator aModificator( *this );
+ // #i92477# be consistent with ScDocFunc::InsertTable: any index past the last sheet means "append"
+ if ( nDestTab >= aDocument.GetTableCount() )
+ nDestTab = SC_TAB_APPEND;
+
if (bCopy)
{
if (bRecord)