static void _input_panel_state_cb (void *data, Ecore_IMF_Context *ctx, int value)
{
map<Ecore_IMF_Context*, string>::iterator it = m_test_name.find (ctx);
- string test = it->second;
+ if (it == m_test_name.end()) return;
+ string test = it->second;
if (value == ECORE_IMF_INPUT_PANEL_STATE_SHOW) {
if (test == "MimeTypeSet") {
const char *mime_type = "text/plain";
{
Ecore_IMF_Context *ctx = (Ecore_IMF_Context*) data;
map<Ecore_IMF_Context*, string>::iterator it = m_test_name.find (ctx);
- string text = it->second;
+ if (it == m_test_name.end()) return;
+ string text = it->second;
if (text == "IMESizeSet") {
char buf[256] = "ChangeIMESize";
ecore_imf_context_input_panel_imdata_set (ctx, buf, sizeof (buf));
{
Ecore_IMF_Context *ctx = (Ecore_IMF_Context*) data;
map<Ecore_IMF_Context*, string>::iterator it = m_test_name.find (ctx);
- string test = it->second;
+ if (it == m_test_name.end()) return;
+ string test = it->second;
if (test == "LanguageSet") {
ecore_imf_context_input_panel_language_set (ctx, ECORE_IMF_INPUT_PANEL_LANG_AUTOMATIC);
} else if (test == "LayoutSet") {