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

(-)a/editeng/source/editeng/impedit2.cxx (+9 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
				long nPosInPortion = aTmpFont.QuickGetTextSize( GetRefDevice(),
4209
					*pParaPortion->GetNode(), pLine->GetStart(), nPos+1, NULL ).Width();
4210
#endif
4202
4211
4203
				if ( !pPortion->IsRightToLeft() )
4212
				if ( !pPortion->IsRightToLeft() )
4204
				{
4213
				{

Return to issue 74188