Peter Kümmel wrote:
Maybe this helps against the crashes, it then there will be a
copy  again:

[...]
-                       return from_ascii(m);
+                       return empty_string;
+ CacheType::iterator it = cache_.find(m);
+               if (it != cache_.end()) {
+                       lyxerr << "Cached translation " << to_utf8(it->second) 
<< endl;

empty_string = it->second;
return empty_string;

instead of 'return it->second;' because how long does it->second; live?

it->second points to the found object. Of course the it iterator would not live after the call but that's not important. I am pretty confident that this is not the problem.

Abdel.

Reply via email to