# HG changeset patch
# User Olaf Wintermann <olaf.wintermann@gmail.com>
# Date 1707216288 -3600
# Node ID 06e655d15b1731ce2b4ead34c32bbce312172ac1
# Parent  33c0a3797a0d692a1b0edd1f1eedc368f2c97db4
fix usage of wrong type in ui_label_set (WinUI3)

diff -r 33c0a3797a0d -r 06e655d15b17 ui/winui/label.cpp
--- 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));
 }