Browse Source

TextEditor: New line atoms should have zero width

v6.1.6
ed 4 years ago
parent
commit
b9c8a1475f
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      modules/juce_gui_basics/widgets/juce_TextEditor.cpp

+ 1
- 1
modules/juce_gui_basics/widgets/juce_TextEditor.cpp View File

@@ -263,7 +263,7 @@ private:
TextAtom atom;
atom.atomText = String (start, numChars);
atom.width = font.getStringWidthFloat (atom.getText (passwordChar));
atom.width = (atom.isNewLine() ? 0.0f : font.getStringWidthFloat (atom.getText (passwordChar)));
atom.numChars = (uint16) numChars;
atoms.add (atom);
}


Loading…
Cancel
Save