diff options
author | Niklas Nebel <nn@openoffice.org> | 2009-10-23 12:55:31 +0000 |
---|---|---|
committer | Niklas Nebel <nn@openoffice.org> | 2009-10-23 12:55:31 +0000 |
commit | 6cf356acf508fe17019a3b90e33a1436e0d89c6e (patch) | |
tree | e2a9f9c148350ecf6715ac97089deb610e9a7656 /sc/source | |
parent | 1655bef24f20f30d5f0961789b5c67287aafcb85 (diff) |
#i101139# MoveTable: nDestTab must be target position, not APPEND
Diffstat (limited to 'sc/source')
-rw-r--r-- | sc/source/ui/docshell/docsh5.cxx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sc/source/ui/docshell/docsh5.cxx b/sc/source/ui/docshell/docsh5.cxx index b7c726deeb71..5b2da76475df 100644 --- a/sc/source/ui/docshell/docsh5.cxx +++ b/sc/source/ui/docshell/docsh5.cxx @@ -840,8 +840,9 @@ 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" + // #i101139# nDestTab must be the target position, not APPEND (for CopyTabProtection etc.) if ( nDestTab >= aDocument.GetTableCount() ) - nDestTab = SC_TAB_APPEND; + nDestTab = aDocument.GetTableCount(); if (bCopy) { |