summaryrefslogtreecommitdiffstats
path: root/sc/source/ui/drawfunc/futext3.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'sc/source/ui/drawfunc/futext3.cxx')
-rw-r--r--sc/source/ui/drawfunc/futext3.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/sc/source/ui/drawfunc/futext3.cxx b/sc/source/ui/drawfunc/futext3.cxx
index 096a7b602744..44d1ac3fbec0 100644
--- a/sc/source/ui/drawfunc/futext3.cxx
+++ b/sc/source/ui/drawfunc/futext3.cxx
@@ -74,7 +74,7 @@ void FuText::StopEditMode(sal_Bool /*bTextDirection*/)
ScViewData& rViewData = *pViewShell->GetViewData();
ScDocument& rDoc = *rViewData.GetDocument();
ScDrawLayer* pDrawLayer = rDoc.GetDrawLayer();
- DBG_ASSERT( pDrawLayer && (pDrawLayer == pDrDoc), "FuText::StopEditMode - missing or different drawing layers" );
+ OSL_ENSURE( pDrawLayer && (pDrawLayer == pDrDoc), "FuText::StopEditMode - missing or different drawing layers" );
ScAddress aNotePos;
ScPostIt* pNote = 0;
@@ -82,7 +82,7 @@ void FuText::StopEditMode(sal_Bool /*bTextDirection*/)
{
aNotePos = pCaptData->maStart;
pNote = rDoc.GetNote( aNotePos );
- DBG_ASSERT( pNote && (pNote->GetCaption() == pObject), "FuText::StopEditMode - missing or invalid cell note" );
+ OSL_ENSURE( pNote && (pNote->GetCaption() == pObject), "FuText::StopEditMode - missing or invalid cell note" );
}
ScDocShell* pDocShell = rViewData.GetDocShell();
@@ -179,7 +179,7 @@ void FuText::StopEditMode(sal_Bool /*bTextDirection*/)
else if( bNewNote || bDeleteNote )
{
SfxListUndoAction* pAction = dynamic_cast< SfxListUndoAction* >( pUndoMgr->GetUndoAction() );
- DBG_ASSERT( pAction, "FuText::StopEditMode - list undo action expected" );
+ OSL_ENSURE( pAction, "FuText::StopEditMode - list undo action expected" );
if( pAction )
pAction->SetComment( ScGlobal::GetRscString( bNewNote ? STR_UNDO_INSERTNOTE : STR_UNDO_DELETENOTE ) );
}