From f75ab0bd662c73d15057d746347d09bf94a992a6 Mon Sep 17 00:00:00 2001 From: crupest Date: Wed, 16 Feb 2022 22:42:34 +0800 Subject: ... --- src/theme_builder/components/stylers/CompoundStylerEditor.cpp | 2 +- src/theme_builder/components/stylers/StylerEditor.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'src/theme_builder/components/stylers') diff --git a/src/theme_builder/components/stylers/CompoundStylerEditor.cpp b/src/theme_builder/components/stylers/CompoundStylerEditor.cpp index 27a29c59..69fd0824 100644 --- a/src/theme_builder/components/stylers/CompoundStylerEditor.cpp +++ b/src/theme_builder/components/stylers/CompoundStylerEditor.cpp @@ -14,7 +14,7 @@ CompoundStylerEditorChild::CompoundStylerEditorChild( remove_button_.SetChild(&remove_button_text_); remove_button_text_.SetText(u"-"); - container_.AddChild(editor->GetRootControl()); + container_.AddChild(styler_editor_->GetRootControl()); remove_button_.ClickEvent()->AddSpyOnlyHandler( [this] { this->remove_event_.Raise(nullptr); }); diff --git a/src/theme_builder/components/stylers/StylerEditor.cpp b/src/theme_builder/components/stylers/StylerEditor.cpp index 9c7852d4..4f3238e2 100644 --- a/src/theme_builder/components/stylers/StylerEditor.cpp +++ b/src/theme_builder/components/stylers/StylerEditor.cpp @@ -28,7 +28,7 @@ std::unique_ptr CreateStylerEditor(ui::style::Styler* styler) { editor->SetValue(cursor_styler); return editor; } else { - return nullptr; + throw Exception(u"Unknown styler type"); } } } // namespace cru::theme_builder::components::stylers -- cgit v1.2.3