mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-17 00:44:19 +00:00
This commit is contained in:
parent
cf18595a28
commit
80ab76f672
1 changed files with 1 additions and 1 deletions
|
|
@ -2387,7 +2387,7 @@ void TextEditor::getCharPosition (const int index, float& cx, float& cy, float&
|
|||
{
|
||||
const float wordWrapWidth = getWordWrapWidth();
|
||||
|
||||
if (wordWrapWidth > 0)
|
||||
if (wordWrapWidth > 0 && sections.size() > 0)
|
||||
{
|
||||
TextEditorIterator i (sections, wordWrapWidth, passwordCharacter);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue