Kaydet (Commit) d13251f2 authored tarafından Caolán McNamara's avatar Caolán McNamara

fix DBG_ASSERT post String->OUString conversion

Change-Id: I9ade42e97218449f7fef7d2582fbbe8d1063c2f6
üst 91da1772
......@@ -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 )
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment