mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-21 09:49:14 +00:00
Added a check in LO_RelayoutOnResize() to bail if the document is being
laid out.
This commit is contained in:
parent
148da3401d
commit
4258da0352
@ -165,6 +165,13 @@ void LO_RelayoutOnResize(MWContext *context, int32 width, int32 height, int32 le
|
||||
|
||||
LO_LockLayout();
|
||||
|
||||
/* Abort if the document is currently being laid out */
|
||||
if (LO_LayingOut( context ))
|
||||
{
|
||||
LO_UnlockLayout();
|
||||
return;
|
||||
}
|
||||
|
||||
if (top_state->the_grid) {
|
||||
/* the document doesn't have any elements. It's a grid document */
|
||||
lo_RelayoutGridDocumentOnResize(context, top_state, width, height);
|
||||
|
Loading…
x
Reference in New Issue
Block a user