sw/source/core/txtnode/fntcache.cxx | 2 -- 1 file changed, 2 deletions(-)
New commits: commit 1ac3b903dfb3dfa6dd2282173dc847a324a282d0 Author: Caolán McNamara <caol...@redhat.com> AuthorDate: Tue Jan 18 13:43:42 2022 +0000 Commit: Caolán McNamara <caol...@redhat.com> CommitDate: Tue Jan 18 16:40:50 2022 +0100 this width is always overwritten before being read so drop this unnecessary calculation Change-Id: Ie79674098f947612e7f1f13de351f00d1d3ac41d Reviewed-on: https://gerrit.libreoffice.org/c/core/+/128559 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caol...@redhat.com> diff --git a/sw/source/core/txtnode/fntcache.cxx b/sw/source/core/txtnode/fntcache.cxx index 698ddd6051bf..c19832743250 100644 --- a/sw/source/core/txtnode/fntcache.cxx +++ b/sw/source/core/txtnode/fntcache.cxx @@ -2032,8 +2032,6 @@ Size SwFntObj::GetTextSize( SwDrawTextInfo& rInf ) { if( !m_pPrtFont->IsSameInstance( m_pPrinter->GetFont() ) ) m_pPrinter->SetFont(*m_pPrtFont); - aTextSize.setWidth( m_pPrinter->GetTextWidth( rInf.GetText(), - sal_Int32(rInf.GetIdx()), sal_Int32(nLn))); aTextSize.setHeight( m_pPrinter->GetTextHeight() ); std::vector<sal_Int32> aKernArray; CreateScrFont( *rInf.GetShell(), rInf.GetOut() );