Raketenmann
19-11-2007 14:55:16
hi there,
I just downloaded v0.97 (and later the latest svn-version) of QuickGUI to give it a try. I really got quick into it and its very easy to use, good job
However, I stepped into a first crash with the console/labelarea:
if you input a line without whitespaces, that is wider than the textarea itself and submit it, the console crashes, and i think i figured out why:
This part of the _getLine(int startIndex)-Method in quickguilabelarea.cpp does not take into account, that a word without whitespaces could have been to long for the text area. The 'else' part tries to roll back but won't find any Whitespace and so try to test mCaption[-1].
~~~ Philipp
I just downloaded v0.97 (and later the latest svn-version) of QuickGUI to give it a try. I really got quick into it and its very easy to use, good job
However, I stepped into a first crash with the console/labelarea:
if you input a line without whitespaces, that is wider than the textarea itself and submit it, the console crashes, and i think i figured out why:
// The rest of the caption is less than the width of the Widget.
if( end == static_cast<int>(mCaption.length()) )
return end;
// Remaining portion of caption is larger than the width of the widget.
else
{
// Iterate backwards until we find a space.
while( !mText->isSpace(mCaption[end]) )
--end;
return end;
}
This part of the _getLine(int startIndex)-Method in quickguilabelarea.cpp does not take into account, that a word without whitespaces could have been to long for the text area. The 'else' part tries to roll back but won't find any Whitespace and so try to test mCaption[-1].
~~~ Philipp