{"action":"opened","issue":{"url":"https://api.github.com/repos/pgmodeler/pgmodeler/issues/1161","repository_url":"https://api.github.com/repos/pgmodeler/pgmodeler","labels_url":"https://api.github.com/repos/pgmodeler/pgmodeler/issues/1161/labels{/name}","comments_url":"https://api.github.com/repos/pgmodeler/pgmodeler/issues/1161/comments","events_url":"https://api.github.com/repos/pgmodeler/pgmodeler/issues/1161/events","html_url":"https://github.com/pgmodeler/pgmodeler/issues/1161","id":354077841,"node_id":"MDU6SXNzdWUzNTQwNzc4NDE=","number":1161,"title":"src/view.cpp:359: bad erase ?","user":{"login":"dcb314","id":4262901,"node_id":"MDQ6VXNlcjQyNjI5MDE=","avatar_url":"https://avatars0.githubusercontent.com/u/4262901?v=4","gravatar_id":"","url":"https://api.github.com/users/dcb314","html_url":"https://github.com/dcb314","followers_url":"https://api.github.com/users/dcb314/followers","following_url":"https://api.github.com/users/dcb314/following{/other_user}","gists_url":"https://api.github.com/users/dcb314/gists{/gist_id}","starred_url":"https://api.github.com/users/dcb314/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dcb314/subscriptions","organizations_url":"https://api.github.com/users/dcb314/orgs","repos_url":"https://api.github.com/users/dcb314/repos","events_url":"https://api.github.com/users/dcb314/events{/privacy}","received_events_url":"https://api.github.com/users/dcb314/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-08-26T08:43:15Z","updated_at":"2018-08-26T08:43:15Z","closed_at":null,"author_association":"NONE","body":"src/view.cpp:359] -> [src/view.cpp:357]: (error) Iterator 'itr' used after element has been erased.\r\n\r\nSource code is\r\n\r\n     if(references[*itr]==references[ref_id])\r\n                                vect_idref[i]->erase(itr);\r\n      itr++;\r\n\r\nMaybe better code\r\n\r\n     if(references[*itr]==references[ref_id])\r\n                                itr = vect_idref[i]->erase(itr);\r\n      else \r\n                               itr++;\r\n"}}
{"actor":{"display_login":"dcb314"}}