1 This patch is from OpenSUSE .src.rpm for the following crash on startup:
3 ERROR:compositelookup.cpp:53:void CompositeLookup::send_net_dict_request(const string&, const string&): assertion failed: (NetDictRequests.end() == std::find(NetDictRequests.begin(), NetDictRequests.end(), request))
5 --- a/dict/src/lib/compositelookup.cpp
6 +++ b/dict/src/lib/compositelookup.cpp
8 void CompositeLookup::send_net_dict_request(const std::string& dict_id, const std::string& key)
10 NetDictRequest request(dict_id, key);
11 - g_assert(NetDictRequests.end() == std::find(NetDictRequests.begin(), NetDictRequests.end(), request));
12 - NetDictRequests.push_back(request);
13 + if(NetDictRequests.end() == std::find(NetDictRequests.begin(), NetDictRequests.end(), request))
15 + NetDictRequests.push_back(request);
19 /* returns true if got expected response */