delay calls to SetUpdateLayout(true) some more

until just before we actually need layout info, which removes some unnecessary layout computation

Change-Id: Ia97a50ea0e611cf2238223b17e3a9576d893c57d
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/183312
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Tested-by: Jenkins
This commit is contained in:
Noel Grandin
2025-03-25 21:58:49 +02:00
parent 2a20616d09
commit 530c42d429
2 changed files with 1 additions and 2 deletions

View File

@ -787,7 +787,6 @@ void SdrTextObj::TakeTextRect( SdrOutliner& rOutliner, tools::Rectangle& rTextRe
rOutliner.SetTextObj( this );
}
rOutliner.SetUpdateLayout(true);
rOutliner.SetText(*pPara);
}
}

View File

@ -144,7 +144,6 @@ bool SdrTextObj::AdjustTextFrameWidthAndHeight( tools::Rectangle& rR, bool bHgt,
{
Outliner& rOutliner = ImpGetDrawOutliner();
rOutliner.SetPaperSize(aNewSize);
rOutliner.SetUpdateLayout(true);
// TODO: add the optimization with bPortionInfoChecked etc. here
OutlinerParaObject* pOutlinerParaObject = GetOutlinerParaObject();
if (pOutlinerParaObject)
@ -152,6 +151,7 @@ bool SdrTextObj::AdjustTextFrameWidthAndHeight( tools::Rectangle& rR, bool bHgt,
rOutliner.SetFixedCellHeight(GetMergedItem(SDRATTR_TEXT_USEFIXEDCELLHEIGHT).GetValue());
rOutliner.SetText(*pOutlinerParaObject);
}
rOutliner.SetUpdateLayout(true);
if (bWdtGrow)
{