summaryrefslogtreecommitdiff
path: root/sc/source/ui/view/preview.cxx
diff options
context:
space:
mode:
authorJacek Wolszczak <shutdownrunner@gmail.com>2011-05-21 15:04:26 +0200
committerDavid Tardon <dtardon@redhat.com>2011-05-27 06:03:37 +0200
commit8b569e74d6b671c13a57c5ad72ed360d194b2dda (patch)
tree3c29b626bd0638fd13cfdfec0be976116de61f91 /sc/source/ui/view/preview.cxx
parent45df4e385910e1006d4bad4f674167c495b75673 (diff)
Replace DBG_* with OSL_* in sc/source/ui
Diffstat (limited to 'sc/source/ui/view/preview.cxx')
-rw-r--r--sc/source/ui/view/preview.cxx8
1 files changed, 4 insertions, 4 deletions
diff --git a/sc/source/ui/view/preview.cxx b/sc/source/ui/view/preview.cxx
index 72aa44daa569..35e03864c582 100644
--- a/sc/source/ui/view/preview.cxx
+++ b/sc/source/ui/view/preview.cxx
@@ -193,7 +193,7 @@ void ScPreview::TestLastPage()
nTab = nTabCount - 1;
while (nTab > 0 && !nPages[nTab]) // letzte nicht leere Tabelle
--nTab;
- DBG_ASSERT(nPages[nTab],"alle Tabellen leer?");
+ OSL_ENSURE(nPages[nTab],"alle Tabellen leer?");
nTabPage = nPages[nTab] - 1;
nTabStart = 0;
for (sal_uInt16 i=0; i<nTab; i++)
@@ -393,7 +393,7 @@ void ScPreview::DoPrint( ScPreviewLocationData* pFillLocation )
aPage.Select( aPageRange );
long nPrinted = pPrintFunc->DoPrint( aPage, nTabStart, nDisplayStart, bDoPrint, NULL, pFillLocation );
- DBG_ASSERT(nPrinted<=1, "was'n nu los?");
+ OSL_ENSURE(nPrinted<=1, "was'n nu los?");
SetMapMode(aMMMode);
@@ -544,7 +544,7 @@ void ScPreview::Paint( const Rectangle& /* rRect */ )
aPage.Select( aPageRange );
long nPrinted = pPrintFunc->DoPrint( aPage, nTabStart, nDisplayStart );
- DBG_ASSERT(nPrinted<=1, "was'n nu los?");
+ OSL_ENSURE(nPrinted<=1, "was'n nu los?");
SetMapMode(aMMMode);
@@ -1202,7 +1202,7 @@ void ScPreview::MouseButtonUp( const MouseEvent& rMEvt )
sal_Bool bUndo( pDoc->IsUndoEnabled() );
ScStyleSheetPool* pStylePool = pDoc->GetStyleSheetPool();
SfxStyleSheetBase* pStyleSheet = pStylePool->Find( pDoc->GetPageStyle( nTab ), SFX_STYLE_FAMILY_PAGE );
- DBG_ASSERT( pStyleSheet, "PageStyle not found" );
+ OSL_ENSURE( pStyleSheet, "PageStyle not found" );
if ( pStyleSheet )
{
ScStyleSaveData aOldData;