diff options
author | Caolán McNamara <caolanm@redhat.com> | 2013-08-17 13:08:32 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2013-08-17 13:09:23 +0100 |
commit | d13251f284797ab9de8164e111931cdee74e3699 (patch) | |
tree | 5d37a26c03e32778ae971097e7b7d3e16333b7c2 /vcl | |
parent | 91da17722924dc505553120750712d491b238343 (diff) |
fix DBG_ASSERT post String->OUString conversion
Change-Id: I9ade42e97218449f7fef7d2582fbbe8d1063c2f6
Diffstat (limited to 'vcl')
-rw-r--r-- | vcl/source/edit/texteng.cxx | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/vcl/source/edit/texteng.cxx b/vcl/source/edit/texteng.cxx index 0de2ffd6cae1..cd84e6f06d85 100644 --- a/vcl/source/edit/texteng.cxx +++ b/vcl/source/edit/texteng.cxx @@ -1224,8 +1224,11 @@ sal_uLong TextEngine::CalcTextHeight() sal_uLong TextEngine::CalcTextWidth( sal_uLong nPara, sal_uInt16 nPortionStart, sal_uInt16 nLen, const Font* pFont ) { +#ifdef DBG_UTIL // within the text there must not be a Portion change (attribute/tab)! - DBG_ASSERT( mpDoc->GetNodes().GetObject( nPara )->GetText().indexOf( '\t', nPortionStart ) >= (nPortionStart+nLen), "CalcTextWidth: Tab!" ); + sal_Int32 nTabPos = mpDoc->GetNodes().GetObject( nPara )->GetText().indexOf( '\t', nPortionStart ); + DBG_ASSERT( nTabPos == -1 || nTabPos >= (nPortionStart+nLen), "CalcTextWidth: Tab!" ); +#endif sal_uLong nWidth; if ( mnFixCharWidth100 ) |