diff --git a/src/gui/widget/textbox.cpp b/src/gui/widget/textbox.cpp index 91d34304c..57218ba6e 100644 --- a/src/gui/widget/textbox.cpp +++ b/src/gui/widget/textbox.cpp @@ -220,7 +220,10 @@ void CTextBox::setTextFont(Font* font_text) void CTextBox::setTextBorderWidth(int border) { - text_border_width = border; + /* we need a minimal borderwith of 1px because the edge-smoothing + (or fontrenderer?) otherwise will paint single pixels outside the + defined area. e.g. 'j' is leaving such residues */ + text_border_width = (border > 0) ? border : 1; //Initialise the window frames first and than refresh text line array initFramesAndTextArray(); }