summaryrefslogtreecommitdiff
path: root/sw
diff options
context:
space:
mode:
authorThorsten Behrens <tbehrens@novell.com>2011-05-24 01:39:42 +0200
committerThorsten Behrens <tbehrens@novell.com>2011-05-24 01:39:42 +0200
commitcb119a9420d68c5ae9b61dd854339b9d8de1ef9f (patch)
treeb76543b98cafdd54d26bcbd5ae0176e491b9d419 /sw
parent8f6b8858024a0395d685afff15d8657981593a14 (diff)
Diffstat (limited to 'sw')
-rwxr-xr-xsw/source/core/docnode/ndnotxt.cxx4
-rw-r--r--sw/source/core/draw/dflyobj.cxx3
2 files changed, 3 insertions, 4 deletions
diff --git a/sw/source/core/docnode/ndnotxt.cxx b/sw/source/core/docnode/ndnotxt.cxx
index c8a3e6106a..5c71edfbf0 100755
--- a/sw/source/core/docnode/ndnotxt.cxx
+++ b/sw/source/core/docnode/ndnotxt.cxx
@@ -158,8 +158,8 @@ const PolyPolygon *SwNoTxtNode::HasContour() const
}
}
}
- OSL_ASSERT( !bPixelGrf || aGrfMap == aContourMap,
- "scale factor for pixel unsupported" );
+ OSL_ENSURE( !bPixelGrf || aGrfMap == aContourMap,
+ "scale factor for pixel unsupported" );
OutputDevice* pOutDev =
(bPixelGrf || bPixelContour) ? Application::GetDefaultDevice()
: 0;
diff --git a/sw/source/core/draw/dflyobj.cxx b/sw/source/core/draw/dflyobj.cxx
index e21caf0f52..cf5982ac87 100644
--- a/sw/source/core/draw/dflyobj.cxx
+++ b/sw/source/core/draw/dflyobj.cxx
@@ -474,8 +474,7 @@ namespace
if ( pMetaFile &&
pMetaFile->IsRecord() && !pMetaFile->IsPause() )
{
- ASSERT( false,
- "MapMode restoration during meta file creation is somehow suspect - using <SetRelativeMapMode(..)>, but not sure, if correct." )
+ OSL_FAIL( "MapMode restoration during meta file creation is somehow suspect - using <SetRelativeMapMode(..)>, but not sure, if correct." );
mpOutDev->SetRelativeMapMode( pViewShell->getPrePostMapMode() );
}
else