1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-17 00:44:19 +00:00
This commit is contained in:
jules 2008-03-06 14:27:09 +00:00
parent cf18595a28
commit 80ab76f672

View file

@ -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);