summaryrefslogtreecommitdiff
path: root/sc/source/ui/app/scmod.cxx
diff options
context:
space:
mode:
authorMarkus Mohrhard <markus.mohrhard@googlemail.com>2011-05-19 23:34:14 +0200
committerMarkus Mohrhard <markus.mohrhard@googlemail.com>2011-05-19 23:34:14 +0200
commitadcc45eef14b34ca3a49bb3a86e6d4c32bcfb721 (patch)
tree0e263c6cae19302de12e5482a8c9bf047ff42d44 /sc/source/ui/app/scmod.cxx
parente37e21299a2c6fb611e2c2039903c5669dcc899c (diff)
rework some additional parts
Diffstat (limited to 'sc/source/ui/app/scmod.cxx')
-rw-r--r--sc/source/ui/app/scmod.cxx11
1 files changed, 2 insertions, 9 deletions
diff --git a/sc/source/ui/app/scmod.cxx b/sc/source/ui/app/scmod.cxx
index 41ba2db31cbe..c5f48071fc47 100644
--- a/sc/source/ui/app/scmod.cxx
+++ b/sc/source/ui/app/scmod.cxx
@@ -1684,15 +1684,8 @@ void lcl_MarkedTabs( const ScMarkData& rMark, SCTAB& rStartTab, SCTAB& rEndTab )
{
if (rMark.GetSelectCount() > 1)
{
- sal_Bool bFirst = sal_True;
- for (SCTAB i=0; i<=MAXTAB; i++)
- if (rMark.GetTableSelect(i))
- {
- if (bFirst)
- rStartTab = i;
- rEndTab = i;
- bFirst = false;
- }
+ rEndTab = rMark.GetLastSelected();
+ rStartTab = rMark.GetFirstSelected();
}
}