More nasty casting of TextInput
authorAndy Allan <andy@gravitystorm.co.uk>
Wed, 29 Jun 2011 17:59:20 +0000 (18:59 +0100)
committerAndy Allan <andy@gravitystorm.co.uk>
Wed, 29 Jun 2011 17:59:20 +0000 (18:59 +0100)
net/systemeD/potlatch2/mapfeatures/editors/ChoiceComboBox.as

index 3139cad..9798a70 100644 (file)
@@ -18,7 +18,7 @@ package net.systemeD.potlatch2.mapfeatures.editors {
                 if ( !textInputReplacement ) {
                         if ( itemRenderer != null ) {
                                 //remove the default textInput
-                                removeChild(textInput);
+                                removeChild(TextInput(textInput));
 
                                 //create a new itemRenderer to use in place of the text input
                                 textInputReplacement = itemRenderer.newInstance();