|
@@ -1604,7 +1604,7 @@ bool TextFeld::isCharSelected( int index ) const
|
|
|
|
|
|
int TextFeld::getTextIndexAt( int mx, int my ) const
|
|
|
{
|
|
|
- if( !tm || !tm->text )
|
|
|
+ if( !tm || !tm->text || !tm->zCurrentRenderer() )
|
|
|
return -1;
|
|
|
int tbr = getTextWidth();
|
|
|
int thi = getTextHeight();
|
|
@@ -1655,6 +1655,8 @@ int TextFeld::getTextIndexAt( int mx, int my ) const
|
|
|
|
|
|
int TextFeld::getCurserPosAt( int mx, int my ) const
|
|
|
{
|
|
|
+ if( !tm || !tm->text || !tm->zCurrentRenderer() )
|
|
|
+ return tm->text->getLength();
|
|
|
int tbr = getTextWidth();
|
|
|
int thi = getTextHeight();
|
|
|
int xxx = 0;
|