diff options
author | FrHun <28605587+frhun@users.noreply.github.com> | 2022-06-10 23:22:22 +0200 |
---|---|---|
committer | Linus Groh <mail@linusgroh.de> | 2022-06-10 22:30:05 +0100 |
commit | c38d3b85202be162ff5d79b9c7d9c9d5bc7bf7de (patch) | |
tree | 76f4deda26d0001ba0442ba383ec8635e6605b4a /Userland/Libraries/LibGUI/GML | |
parent | ae3b9ad69f80a5ad41ae8b2d33449992dd41c65b (diff) | |
download | serenity-c38d3b85202be162ff5d79b9c7d9c9d5bc7bf7de.zip |
LibGUI: Fix GML parser command order regression
This was previously fixed in #13572 with
546d338639cc090055d0c416a76fc237d06930c8
but regressed in #14251 with
ec40c93300a2b111129adf1a5badecde8c22889f
Diffstat (limited to 'Userland/Libraries/LibGUI/GML')
-rw-r--r-- | Userland/Libraries/LibGUI/GML/Parser.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Userland/Libraries/LibGUI/GML/Parser.cpp b/Userland/Libraries/LibGUI/GML/Parser.cpp index 394774a5ab..7324eb8aee 100644 --- a/Userland/Libraries/LibGUI/GML/Parser.cpp +++ b/Userland/Libraries/LibGUI/GML/Parser.cpp @@ -57,14 +57,14 @@ static ErrorOr<NonnullRefPtr<Object>> parse_gml_object(Queue<Token>& tokens) // It's a child object. while (!pending_comments.is_empty()) - TRY(object->add_sub_object_child(pending_comments.take_last())); + TRY(object->add_sub_object_child(pending_comments.take_first())); TRY(object->add_sub_object_child(TRY(parse_gml_object(tokens)))); } else if (peek() == Token::Type::Identifier) { // It's a property. while (!pending_comments.is_empty()) - TRY(object->add_property_child(pending_comments.take_last())); + TRY(object->add_property_child(pending_comments.take_first())); auto property_name = tokens.dequeue(); |