- if ( editable != m_editable )
- {
- m_editable = editable ;
- GetTextPeer()->SetEditable( editable ) ;
- }
+ if ( editable == m_editable )
+ return;
+
+ m_editable = editable ;
+
+ wxCHECK_RET( GetTextPeer(), "Must create the control first" );
+ GetTextPeer()->SetEditable( editable ) ;