diff options
author | Caolán McNamara <caolanm@redhat.com> | 2013-10-19 15:29:10 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2013-10-19 19:16:33 +0100 |
commit | 984d10ca8d695013e01c8d9ab74b072a857e4cda (patch) | |
tree | b39b07e6053ba6a11c04c42b84c3b0ccaea66e09 /filter | |
parent | 9f8a3e7329f2ce079f3b64d1f73d1097ed5aa025 (diff) |
CID#1103675 use normal assert, as it's toast anyway
Change-Id: I065ce5f80f0c54443aca9378a653a9f25175feee
Diffstat (limited to 'filter')
-rw-r--r-- | filter/source/svg/svgwriter.cxx | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/filter/source/svg/svgwriter.cxx b/filter/source/svg/svgwriter.cxx index 332b5d8b4af7..bed5b5c13661 100644 --- a/filter/source/svg/svgwriter.cxx +++ b/filter/source/svg/svgwriter.cxx @@ -1515,9 +1515,6 @@ void SVGTextWriter::implWriteTextPortion( const Point& rPos, Color aTextColor, sal_Bool bApplyMapping ) { - if( !mpContext ) - OSL_FAIL( "SVGTextWriter::implWriteTextPortion: invalid context object." ); - Point aPos; Point aBaseLinePos( rPos ); const FontMetric aMetric( mpVDev->GetFontMetric() ); @@ -1601,6 +1598,8 @@ void SVGTextWriter::implWriteTextPortion( const Point& rPos, } addFontAttributes( /* isTexTContainer: */ false ); + assert(mpContext); //invalid context object + mpContext->AddPaintAttr( COL_TRANSPARENT, aTextColor ); OUString sTextContent = rText; |