{"action":"opened","issue":{"url":"https://api.github.com/repos/vslavik/poedit/issues/203","labels_url":"https://api.github.com/repos/vslavik/poedit/issues/203/labels{/name}","comments_url":"https://api.github.com/repos/vslavik/poedit/issues/203/comments","events_url":"https://api.github.com/repos/vslavik/poedit/issues/203/events","html_url":"https://github.com/vslavik/poedit/issues/203","id":105095255,"number":203,"title":"Select translated text, press enter, index out of bounds error","user":{"login":"c72578","id":371551,"avatar_url":"https://avatars.githubusercontent.com/u/371551?v=3","gravatar_id":"","url":"https://api.github.com/users/c72578","html_url":"https://github.com/c72578","followers_url":"https://api.github.com/users/c72578/followers","following_url":"https://api.github.com/users/c72578/following{/other_user}","gists_url":"https://api.github.com/users/c72578/gists{/gist_id}","starred_url":"https://api.github.com/users/c72578/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/c72578/subscriptions","organizations_url":"https://api.github.com/users/c72578/orgs","repos_url":"https://api.github.com/users/c72578/repos","events_url":"https://api.github.com/users/c72578/events{/privacy}","received_events_url":"https://api.github.com/users/c72578/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-09-06T13:34:29Z","updated_at":"2015-09-06T13:34:29Z","closed_at":null,"body":"- This bug has been reported downstream for Fedora 22:\r\nhttps://bugzilla.redhat.com/show_bug.cgi?id=1258239\r\n\r\nDescription of problem:\r\nHow to reproduce this bug:\r\n1. Open a .po file with poedit;\r\n2. Full-select msgstr of one translated item;\r\n3. Press Enter key.\r\n\r\n- Further information from reproducing this bug under Fedora 21:\r\nPoedit version: current master (commit c7efc65af53973f83aa9a51b217f0a20f8d84155)\r\n\r\nIn the error message window, which appears after pressing enter, the user can either click on \"Stop\" or \"Continue\".\r\nContinue: The selected text is deleted, a new line is inserted and Poedit continues as expected.\r\nStop: Trace/breakpoint trap (core dumped)\r\n\r\n- Information copied from the error message window:\r\nASSERT INFO:\r\n/usr/include/wx-3.0/wx/string.h(1536): assert \"!empty()\" failed in Last(): wxString: index out of bounds\r\n\r\nBACKTRACE:\r\n[1] wxString::Last() /usr/include/wx-3.0/wx/string.h:1536\r\n[2] wxAppConsoleBase::CallEventHandler(wxEvtHandler*, wxEventFunctor&, wxEvent&) const\r\n[3] wxEvtHandler::ProcessEventIfMatchesId(wxEventTableEntryBase const&, wxEvtHandler*, wxEvent&)\r\n[4] wxEvtHandler::SearchDynamicEventTable(wxEvent&)\r\n[5] wxEvtHandler::TryHereOnly(wxEvent&)\r\n[6] wxEvtHandler::DoTryChain(wxEvent&)\r\n[7] wxEvtHandler::ProcessEvent(wxEvent&)\r\n[8] wxEvtHandler::SafelyProcessEvent(wxEvent&)\r\n[9] wxTextEntryBase::SendTextUpdatedEvent(wxWindow*)\r\n[10] g_closure_invoke\r\n[11] g_signal_emit_valist\r\n[12] g_signal_emit\r\n[13] g_closure_invoke\r\n[14] g_signal_emit_valist\r\n[15] g_signal_emit\r\n[16] gtk_text_buffer_delete_interactive\r\n[17] gtk_text_buffer_delete_selection\r\n[18] g_closure_invoke\r\n[19] g_signal_emit_valist\r\n[20] g_signal_emit\r\n[21] gtk_window_propagate_key_event\r\n[22] g_closure_invoke\r\n[23] g_signal_emit_valist\r\n[24] g_signal_emit\r\n[25] gtk_main_do_event\r\n[26] g_main_context_dispatch\r\n[27] g_main_loop_run\r\n[28] gtk_main\r\n[29] wxGUIEventLoop::DoRun()\r\n[30] wxEventLoopBase::Run()\r\n[31] wxAppConsoleBase::MainLoop()\r\n[32] wxEntry(int&, wchar_t**)\r\n[33] main src/edapp.cpp:253\r\n[34] __libc_start_main\r\n[35] _start\r\n![screenshot_poedit_select-enter](https://cloud.githubusercontent.com/assets/371551/9704600/baf187b6-54ac-11e5-9478-0f25f014971d.png)\r\n"}}