fix listbox bug

git-svn-id: http://svn2.nishi.boats/svn/milsko/trunk@667 b9cfdab3-6d41-4d17-bbe4-086880011989
This commit is contained in:
NishiOwO
2025-11-11 12:55:00 +00:00
parent 76e0cff378
commit dc7d8d359d

View File

@@ -307,6 +307,9 @@ static int create(MwWidget handle) {
MwSetDefault(handle);
MwSetInteger(handle, MwNleftPadding, 0);
MwSetInteger(handle, MwNhasHeading, 0);
resize(handle);
lb->list = NULL;
lb->selected = -1;
@@ -314,9 +317,6 @@ static int create(MwWidget handle) {
lb->width = NULL;
lb->changed = 0;
MwSetInteger(handle, MwNleftPadding, 0);
MwSetInteger(handle, MwNhasHeading, 0);
return 0;
}