|
@@ -444,7 +444,7 @@ int TextFeld::getTextHeight() const
|
|
|
int tmp = r->getZeilenHeight();
|
|
|
max = max >= tmp ? max : tmp;
|
|
|
if( max == tmp )
|
|
|
- abstand = r->getZeichenAbstand();
|
|
|
+ abstand = r->getZeilenAbstand();
|
|
|
}
|
|
|
tm->nextStyle();
|
|
|
}
|
|
@@ -634,7 +634,7 @@ void TextFeld::setFormattedText( const char *txt )
|
|
|
}
|
|
|
|
|
|
// fügt zeilenumbrüche so ein, dass der text nicht die breite des textfeldes überschreitet
|
|
|
-void TextFeld::addLineBreaks()
|
|
|
+void TextFeld::addLineBreaks( const char *spacing )
|
|
|
{
|
|
|
if( !tm->text )
|
|
|
return;
|
|
@@ -749,7 +749,8 @@ void TextFeld::addLineBreaks()
|
|
|
{
|
|
|
result.remove( lastPos2, result.getLength() );
|
|
|
result += "\n";
|
|
|
- x = 0;
|
|
|
+ result += spacing;
|
|
|
+ x = tm->zCurrentRenderer()->getTextBreite( spacing );
|
|
|
i = lastPos;
|
|
|
tm->stepTo( lastPos );
|
|
|
lastPos = -1;
|