Przeglądaj źródła

This subtle little bug...

Michael Ragazzon 6 lat temu
rodzic
commit
9c51f99a57
1 zmienionych plików z 1 dodań i 1 usunięć
  1. 1 1
      Source/Controls/ElementFormControlInput.cpp

+ 1 - 1
Source/Controls/ElementFormControlInput.cpp

@@ -119,7 +119,7 @@ void ElementFormControlInput::OnAttributeChange(const Core::AttributeNameList& c
 			new_type = new InputTypeSubmit(this);
 		else if (new_type_name == "button")
 			new_type = new InputTypeButton(this);
-		else if (type_name == "text")
+		else if (new_type_name == "text")
 			new_type = new InputTypeText(this);
 
 		if (new_type != NULL)