summaryrefslogtreecommitdiff
path: root/sc
diff options
context:
space:
mode:
authorMarkus Mohrhard <markus.mohrhard@googlemail.com>2011-06-01 21:37:42 +0200
committerMarkus Mohrhard <markus.mohrhard@googlemail.com>2011-06-01 21:37:42 +0200
commit0ef96d2d92f754b56eb3b472b88c81da689bbb92 (patch)
treef9bf823cd40c094e11bd4106c9b74508f4c14e8f /sc
parent17e4f58216020aaead24b5dcbaf6767e15e834e1 (diff)
we cant't check for 2*MAXTAB anymore, this is out of bounds
Diffstat (limited to 'sc')
-rw-r--r--sc/source/ui/view/cellsh3.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/sc/source/ui/view/cellsh3.cxx b/sc/source/ui/view/cellsh3.cxx
index 06c960a8ac0a..e6bdc02d1262 100644
--- a/sc/source/ui/view/cellsh3.cxx
+++ b/sc/source/ui/view/cellsh3.cxx
@@ -458,7 +458,7 @@ void ScCellShell::Execute( SfxRequest& rReq )
bValid = !pDoc->GetTable( aName, nDummy );
++i;
}
- while ( !bValid && i <= 2*MAXTAB );
+ while ( !bValid && i <= MAXTAB + 2 );
if ( pReqArgs != NULL )
{