fix usage of wrong type in ui_label_set (WinUI3) newapi

Tue, 06 Feb 2024 11:44:48 +0100

author
Olaf Wintermann <olaf.wintermann@gmail.com>
date
Tue, 06 Feb 2024 11:44:48 +0100
branch
newapi
changeset 245
06e655d15b17
parent 244
33c0a3797a0d
child 246
b19f3098dd11

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));
 }
 

mercurial