Merge branch 'builder-tool-placeholder-crash' into 'master'

gtk-builder-tool: Avoid a crash with <placeholder/>

Closes #3781

See merge request GNOME/gtk!3339
This commit is contained in:
Matthias Clasen 2021-03-23 21:02:39 +00:00
commit b539c92312

View File

@ -944,6 +944,8 @@ rewrite_notebook_page (Element *child, Element *tab, MyParserData *data)
object = elt;
else if (g_str_equal (elt->element_name, "packing"))
packing = elt;
else if (g_str_equal (elt->element_name, "placeholder"))
return child;
}
if (!packing && !tab)