mirror of
https://github.com/LibreOffice/core.git
synced 2025-08-15 20:47:46 +00:00
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:
@ -787,7 +787,6 @@ void SdrTextObj::TakeTextRect( SdrOutliner& rOutliner, tools::Rectangle& rTextRe
|
||||
rOutliner.SetTextObj( this );
|
||||
}
|
||||
|
||||
rOutliner.SetUpdateLayout(true);
|
||||
rOutliner.SetText(*pPara);
|
||||
}
|
||||
}
|
||||
|
@ -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)
|
||||
{
|
||||
|
Reference in New Issue
Block a user