aboutsummaryrefslogtreecommitdiffstats
path: root/src/gwin/label.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/gwin/label.c')
-rw-r--r--src/gwin/label.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/gwin/label.c b/src/gwin/label.c
index 2ff60eb4..a76c0ec4 100644
--- a/src/gwin/label.c
+++ b/src/gwin/label.c
@@ -95,6 +95,7 @@ GHandle gwinLabelCreate(GLabelObject *widget, GWidgetInit *pInit) {
// auto assign width
if (pInit->g.width <= 0) {
+
flags |= GLABEL_FLG_WAUTO;
pInit->g.width = getwidth(pInit->text, gwinGetDefaultFont(), gdispGetWidth() - pInit->g.x);
}