summaryrefslogtreecommitdiff
path: root/sc/source/ui
diff options
context:
space:
mode:
authorMarkus Mohrhard <markus.mohrhard@googlemail.com>2011-12-26 14:54:31 +0100
committerMarkus Mohrhard <markus.mohrhard@googlemail.com>2011-12-27 00:55:21 +0100
commitd1c1c679db1f2a58803af0502d2b9aa6762e92f1 (patch)
tree299e49e65144d65ed20c629733901f60178e513d /sc/source/ui
parentb005f91d1da11c0a781c5752b69a464fe4640da0 (diff)
move OSL_FAIL to correct location
Diffstat (limited to 'sc/source/ui')
-rw-r--r--sc/source/ui/view/preview.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/sc/source/ui/view/preview.cxx b/sc/source/ui/view/preview.cxx
index 1c0d37a733dd..4d72ef9e532c 100644
--- a/sc/source/ui/view/preview.cxx
+++ b/sc/source/ui/view/preview.cxx
@@ -732,8 +732,6 @@ void ScPreview::SetPageNo( long nPage )
long ScPreview::GetFirstPage(SCTAB nTabP)
{
- if (nTabP >= static_cast<SCTAB>(nPages.size()) )
- OSL_FAIL("nPages out ouf bounds, FIX IT");
SCTAB nDocTabCount = pDocShell->GetDocument()->GetTableCount();
if (nTabP >= nDocTabCount)
nTabP = nDocTabCount-1;
@@ -742,6 +740,8 @@ long ScPreview::GetFirstPage(SCTAB nTabP)
if (nTabP>0)
{
CalcPages();
+ if (nTabP >= static_cast<SCTAB>(nPages.size()) )
+ OSL_FAIL("nPages out ouf bounds, FIX IT");
UpdateDrawView(); // Tabelle evtl. geaendert
for (SCTAB i=0; i<nTabP; i++)