|
@@ -1201,12 +1201,15 @@ void TextFeld::render( Bild &zRObj ) // zeichenet nach zRObj
|
|
for( int i = 0; i <= len; i++ )
|
|
for( int i = 0; i <= len; i++ )
|
|
{
|
|
{
|
|
int oldX = x;
|
|
int oldX = x;
|
|
- if( i < len )
|
|
|
|
|
|
+ if( i < len && tm->zCurrentRenderer() )
|
|
tm->zCurrentRenderer()->renderChar( x, y, istSchreibbar( showChar ) ? showChar : text[ i ], zRObj, style.selected ? style.selectedColor : style.fontColor, style.underlined, style.selected, style.selectedBackcroundColor );
|
|
tm->zCurrentRenderer()->renderChar( x, y, istSchreibbar( showChar ) ? showChar : text[ i ], zRObj, style.selected ? style.selectedColor : style.fontColor, style.underlined, style.selected, style.selectedBackcroundColor );
|
|
if( i == cpos && tickVal <= 0.5 && hatStyle( Style::Fokus ) && hatStyle( Style::Erlaubt ) )
|
|
if( i == cpos && tickVal <= 0.5 && hatStyle( Style::Fokus ) && hatStyle( Style::Erlaubt ) )
|
|
zRObj.drawLinieV( oldX, y, tm->zCurrentRenderer()->getZeilenHeight(), 0xFFFF5555 );
|
|
zRObj.drawLinieV( oldX, y, tm->zCurrentRenderer()->getZeilenHeight(), 0xFFFF5555 );
|
|
- int tmp = tm->zCurrentRenderer()->getZeilenHeight() + tm->zCurrentRenderer()->getZeilenAbstand();
|
|
|
|
- maxLH = tmp > maxLH ? tmp : maxLH;
|
|
|
|
|
|
+ if( tm->zCurrentRenderer() )
|
|
|
|
+ {
|
|
|
|
+ int tmp = tm->zCurrentRenderer()->getZeilenHeight() + tm->zCurrentRenderer()->getZeilenAbstand();
|
|
|
|
+ maxLH = tmp > maxLH ? tmp : maxLH;
|
|
|
|
+ }
|
|
if( i < len && text[ i ] == '\n' )
|
|
if( i < len && text[ i ] == '\n' )
|
|
{
|
|
{
|
|
x = xxx;
|
|
x = xxx;
|