summaryrefslogtreecommitdiff
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-26 15:18:45 +0100
commitee154f70a1b6b1c8483e0c66f0f5dc6ad6e576e0 (patch)
tree3c16f2cad77825db612c1b5743051db71b21914c
parent3e4f51f112248b4e586f5bd86388099737ed17e9 (diff)
move OSL_FAIL to correct location
-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++)