Fixed: Changing font name for already rendered text leading to crash.

--HG--
branch : develop
feature/pipeline-tools
Nimetu 6 years ago
parent 35f5c1b77f
commit ac4fd3f8b2

@ -1440,12 +1440,11 @@ namespace NLGUI
if (_FontName == name)
return;
if (_FontName.length() > 0)
{
if (_Index != 0xFFFFFFFF)
CViewRenderer::getTextContext(_FontName)->erase (_Index);
clearLines();
}
if (_Index != 0xFFFFFFFF)
CViewRenderer::getTextContext(_FontName)->erase (_Index);
clearLines();
resetTextIndex();
_FontName = name;
computeFontSize ();

Loading…
Cancel
Save