diff --git a/vcl/source/control/edit.cxx b/vcl/source/control/edit.cxx index 63e9a700e739..9490014c2bb1 100644 --- a/vcl/source/control/edit.cxx +++ b/vcl/source/control/edit.cxx @@ -2026,7 +2026,7 @@ void Edit::Command( const CommandEvent& rCEvt ) { ImplSetSelection( Selection( 0, maText.getLength() ) ); } - else if (sCommand == "specialchar") + else if (sCommand == "specialchar" && pImplFncGetSpecialChars) { OUString aChars = pImplFncGetSpecialChars( this, GetFont() ); SetSelection( aSaveSel );