Tue, 06 Feb 2024 11:44:48 +0100
fix usage of wrong type in ui_label_set (WinUI3)
ui/winui/label.cpp | file | annotate | diff | comparison | revisions |
--- a/ui/winui/label.cpp Tue Feb 06 10:09:10 2024 +0100 +++ b/ui/winui/label.cpp Tue Feb 06 11:44:48 2024 +0100 @@ -99,7 +99,7 @@ void ui_label_set(UiString* str, const char* newvalue) { UiWidget* widget = (UiWidget*)str->obj; - TextBox box = widget->uielement.as<TextBox>(); + TextBlock box = widget->uielement.as<TextBlock>(); box.Text(ui_wstring_set(str, newvalue)); }