mirror of
https://github.com/TES3MP/TES3MP.git
synced 2025-09-27 06:55:54 -04:00
Text replace fix
This commit is contained in:
parent
48c5e33c79
commit
0f2866dc15
@ -140,7 +140,7 @@ namespace MWGui
|
||||
std::string displayName = link;
|
||||
MWDialogue::RemovePseudoAsterisks(displayName);
|
||||
|
||||
mText.replace(pos_begin, pos_end+1, displayName);
|
||||
mText.replace(pos_begin, pos_end+1-pos_begin, displayName);
|
||||
|
||||
assert(topicLinks.find(topicName) != topicLinks.end());
|
||||
hyperLinks[std::make_pair(pos_begin, pos_begin+displayName.size())] = intptr_t(topicLinks[topicName]);
|
||||
|
Loading…
x
Reference in New Issue
Block a user