From 80ab76f672c9baf71606ea17bd075668c129e4df Mon Sep 17 00:00:00 2001 From: jules Date: Thu, 6 Mar 2008 14:27:09 +0000 Subject: [PATCH] --- .../gui/components/controls/juce_TextEditor.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/juce_appframework/gui/components/controls/juce_TextEditor.cpp b/src/juce_appframework/gui/components/controls/juce_TextEditor.cpp index 6f733f1a90..44e1f2f491 100644 --- a/src/juce_appframework/gui/components/controls/juce_TextEditor.cpp +++ b/src/juce_appframework/gui/components/controls/juce_TextEditor.cpp @@ -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);