{"action":"created","issue":{"url":"https://api.github.com/repos/cnjinhao/nana/issues/300","repository_url":"https://api.github.com/repos/cnjinhao/nana","labels_url":"https://api.github.com/repos/cnjinhao/nana/issues/300/labels{/name}","comments_url":"https://api.github.com/repos/cnjinhao/nana/issues/300/comments","events_url":"https://api.github.com/repos/cnjinhao/nana/issues/300/events","html_url":"https://github.com/cnjinhao/nana/issues/300","id":296093900,"number":300,"title":"A multiple selection listbox crashes when the user clicks on a category while pressing a modifier key","user":{"login":"ErrorFlynn","id":20293505,"avatar_url":"https://avatars1.githubusercontent.com/u/20293505?v=4","gravatar_id":"","url":"https://api.github.com/users/ErrorFlynn","html_url":"https://github.com/ErrorFlynn","followers_url":"https://api.github.com/users/ErrorFlynn/followers","following_url":"https://api.github.com/users/ErrorFlynn/following{/other_user}","gists_url":"https://api.github.com/users/ErrorFlynn/gists{/gist_id}","starred_url":"https://api.github.com/users/ErrorFlynn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ErrorFlynn/subscriptions","organizations_url":"https://api.github.com/users/ErrorFlynn/orgs","repos_url":"https://api.github.com/users/ErrorFlynn/repos","events_url":"https://api.github.com/users/ErrorFlynn/events{/privacy}","received_events_url":"https://api.github.com/users/ErrorFlynn/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-02-10T11:29:20Z","updated_at":"2018-02-11T00:05:56Z","closed_at":null,"author_association":"NONE","body":"When clicking on a category in a multiple selection listbox while holding down the Shift or Ctrl key, the library throws an exception and crashes.\r\n\r\nSome test code for your convenience:\r\n\r\n```\r\n#include <nana/gui/wvl.hpp>\r\n#include <nana/gui/widgets/listbox.hpp>\r\n\r\nusing namespace std;\r\nusing namespace nana;\r\n\r\nint main()\r\n{\r\n\tform fm{API::make_center(600, 800), appear::decorate<appear::taskbar>()};\r\n\r\n\tlistbox lb(fm, rectangle{15, 15, 570, 770});\r\n\tlb.append_header(\"Dummy header\", 558);\r\n\tlb.show_header(false);\r\n\r\n\tfor(int n(0); n<5; n++)\r\n\t{\r\n\t\tauto cat = lb.append(\"Category #\" + to_string(n+1));\r\n\t\tfor(int m(0); m<5; m++) cat.append(\"item #\" + to_string(m));\r\n\t}\r\n\r\n\tfm.show();\r\n\texec();\r\n}\r\n```"},"comment":{"url":"https://api.github.com/repos/cnjinhao/nana/issues/comments/364706858","html_url":"https://github.com/cnjinhao/nana/issues/300#issuecomment-364706858","issue_url":"https://api.github.com/repos/cnjinhao/nana/issues/300","id":364706858,"user":{"login":"ErrorFlynn","id":20293505,"avatar_url":"https://avatars1.githubusercontent.com/u/20293505?v=4","gravatar_id":"","url":"https://api.github.com/users/ErrorFlynn","html_url":"https://github.com/ErrorFlynn","followers_url":"https://api.github.com/users/ErrorFlynn/followers","following_url":"https://api.github.com/users/ErrorFlynn/following{/other_user}","gists_url":"https://api.github.com/users/ErrorFlynn/gists{/gist_id}","starred_url":"https://api.github.com/users/ErrorFlynn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ErrorFlynn/subscriptions","organizations_url":"https://api.github.com/users/ErrorFlynn/orgs","repos_url":"https://api.github.com/users/ErrorFlynn/repos","events_url":"https://api.github.com/users/ErrorFlynn/events{/privacy}","received_events_url":"https://api.github.com/users/ErrorFlynn/received_events","type":"User","site_admin":false},"created_at":"2018-02-11T00:05:56Z","updated_at":"2018-02-11T00:05:56Z","author_association":"NONE","body":"I will, thank you."}}
{"actor":{"display_login":"ErrorFlynn"}}