summaryrefslogtreecommitdiff
path: root/sw/source/uibase/uiview/viewdraw.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'sw/source/uibase/uiview/viewdraw.cxx')
-rw-r--r--sw/source/uibase/uiview/viewdraw.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/sw/source/uibase/uiview/viewdraw.cxx b/sw/source/uibase/uiview/viewdraw.cxx
index a1d28225e51f..b6bd92579188 100644
--- a/sw/source/uibase/uiview/viewdraw.cxx
+++ b/sw/source/uibase/uiview/viewdraw.cxx
@@ -464,7 +464,7 @@ bool SwView::EnterDrawTextMode(const Point& aDocPos)
{
SwWrtShell *pSh = &GetWrtShell();
SdrView *pSdrView = pSh->GetDrawView();
- OSL_ENSURE( pSdrView, "EnterDrawTextMode without DrawView?" );
+ assert(pSdrView && "EnterDrawTextMode without DrawView?");
bool bReturn = false;
@@ -609,7 +609,7 @@ bool SwView::IsTextTool() const
SdrObjKind nId;
SdrInventor nInvent;
SdrView *pSdrView = GetWrtShell().GetDrawView();
- OSL_ENSURE( pSdrView, "IsTextTool without DrawView?" );
+ assert(pSdrView && "IsTextTool without DrawView?");
if (pSdrView->IsCreateMode())
pSdrView->SetCreateMode(false);