diff options
author | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2011-05-19 23:34:14 +0200 |
---|---|---|
committer | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2011-05-19 23:34:14 +0200 |
commit | adcc45eef14b34ca3a49bb3a86e6d4c32bcfb721 (patch) | |
tree | 0e263c6cae19302de12e5482a8c9bf047ff42d44 /sc/source/ui/app/scmod.cxx | |
parent | e37e21299a2c6fb611e2c2039903c5669dcc899c (diff) |
rework some additional parts
Diffstat (limited to 'sc/source/ui/app/scmod.cxx')
-rw-r--r-- | sc/source/ui/app/scmod.cxx | 11 |
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(); } } |