View | Details | Raw Unified | Return to issue 74188
Collapse All | Expand All

(-)a/editeng/source/editeng/impedit2.cxx (+10 lines)
Lines 4198-4204 Link Here
4198
					DBG_ERROR("svx::ImpEditEngine::GetXPos(), index out of range!");
4198
					DBG_ERROR("svx::ImpEditEngine::GetXPos(), index out of range!");
4199
				}
4199
				}
4200
4200
4201
#if 0
4201
				long nPosInPortion = pLine->GetCharPosArray().GetObject( nPos );
4202
				long nPosInPortion = pLine->GetCharPosArray().GetObject( nPos );
4203
#else
4204
				SvxFont aTmpFont( pParaPortion->GetNode()->GetCharAttribs().GetDefFont() );
4205
				SeekCursor( pParaPortion->GetNode(), nPos+1, aTmpFont );
4206
				aTmpFont.SetPhysFont( GetRefDevice() );
4207
				ImplInitDigitMode( GetRefDevice(), 0, 0, 0, aTmpFont.GetLanguage() );
4208
				String sSegment(*pParaPortion->GetNode(), pLine->GetStart(), nPos+1);
4209
				long nPosInPortion = aTmpFont.QuickGetTextSize( GetRefDevice(),
4210
					sSegment, 0, nPos+1, NULL ).Width();
4211
#endif
4202
4212
4203
				if ( !pPortion->IsRightToLeft() )
4213
				if ( !pPortion->IsRightToLeft() )
4204
				{
4214
				{

Return to issue 74188