-removed dynamic_cast on CheckBox, fixes #1830

This commit is contained in:
Juan Linietsky 2015-05-06 09:45:25 -03:00
parent bc3c14a76b
commit 9de37817bc

View File

@ -59,7 +59,7 @@ bool CheckBox::is_radio()
Node* parent = this;
do {
parent = parent->get_parent();
if (dynamic_cast< ButtonGroup* >(parent))
if (parent->cast_to<ButtonGroup>())
break;
} while (parent);