mirror of
https://port.numenaute.org/aleajactaest/khanat-opennel-code.git
synced 2024-11-10 09:19:01 +00:00
Fixed: Crash when processing comments
This commit is contained in:
parent
12d475bb75
commit
8455ba3917
1 changed files with 1 additions and 1 deletions
|
@ -383,7 +383,7 @@ bool mergeStringDiff(vector<TStringInfo> &strings, const string &language, const
|
||||||
nlassertex(diffInfo.Index2 < strings.size(), ("Index %u out of max Range %u", diffInfo.Index2, strings.size()));
|
nlassertex(diffInfo.Index2 < strings.size(), ("Index %u out of max Range %u", diffInfo.Index2, strings.size()));
|
||||||
swap(strings[diffInfo.Index1], strings[diffInfo.Index2]);
|
swap(strings[diffInfo.Index1], strings[diffInfo.Index2]);
|
||||||
// remove the swap from the comments
|
// remove the swap from the comments
|
||||||
diff[j].Comments = diff[j].Comments.substr(diff[j].Comments.find(nl)+2);
|
diff[j].Comments = diff[j].Comments.substr(diff[j].Comments.find(nl)+nl.length());
|
||||||
if (!diff[j].Comments.empty())
|
if (!diff[j].Comments.empty())
|
||||||
j--;
|
j--;
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Reference in a new issue