diff --git a/code/nel/src/gui/view_text.cpp b/code/nel/src/gui/view_text.cpp index 45adbe245..cf3857102 100644 --- a/code/nel/src/gui/view_text.cpp +++ b/code/nel/src/gui/view_text.cpp @@ -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 ();