Explorar el Código

This subtle little bug...

Michael Ragazzon hace 6 años
padre
commit
9c51f99a57
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  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);
 			new_type = new InputTypeSubmit(this);
 		else if (new_type_name == "button")
 		else if (new_type_name == "button")
 			new_type = new InputTypeButton(this);
 			new_type = new InputTypeButton(this);
-		else if (type_name == "text")
+		else if (new_type_name == "text")
 			new_type = new InputTypeText(this);
 			new_type = new InputTypeText(this);
 
 
 		if (new_type != NULL)
 		if (new_type != NULL)