mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-10 23:44:24 +00:00
TextEditor: New line atoms should have zero width
This commit is contained in:
parent
b644d7b675
commit
b9c8a1475f
1 changed files with 1 additions and 1 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue