Formspec: No spec ID for static text labels
authorSmallJoker <mk939@ymail.com>
Sat, 11 Apr 2020 13:31:02 +0000 (15:31 +0200)
committerSmallJoker <mk939@ymail.com>
Sat, 11 Apr 2020 13:31:02 +0000 (15:31 +0200)
Fixes #9634

src/gui/guiFormSpecMenu.cpp

index 59cd130ef2cc313a3096d4a486f77cdb87ee6d06..acb153569e1b3a13ba5ff6de2db23c8f90df4bdf 100644 (file)
@@ -1424,7 +1424,7 @@ void GUIFormSpecMenu::createTextField(parserData *data, FieldSpec &spec,
        if (!is_editable && !is_multiline) {
                // spec field id to 0, this stops submit searching for a value that isn't there
                gui::StaticText::add(Environment, spec.flabel.c_str(), rect, false, true,
-                               this, spec.fid);
+                               this, 0);
                return;
        }