diff options
author | Martin Schirrmacher <vdr.skinflatplus@schirrmacher.eu> | 2014-05-09 16:47:13 +0200 |
---|---|---|
committer | Martin Schirrmacher <vdr.skinflatplus@schirrmacher.eu> | 2014-05-09 16:47:13 +0200 |
commit | 8e18519ba1dcda0c9de0429ecf15fddb9c5411f4 (patch) | |
tree | 10128c56dcdf4c53150bff4c8bdf90f3149d3aef /complexcontent.c | |
parent | 5b31f3b6b214006f1452a195bc23e18ae8be4405 (diff) | |
download | skin-flatplus-8e18519ba1dcda0c9de0429ecf15fddb9c5411f4.tar.gz skin-flatplus-8e18519ba1dcda0c9de0429ecf15fddb9c5411f4.tar.bz2 |
fix floated text
Diffstat (limited to 'complexcontent.c')
-rw-r--r-- | complexcontent.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/complexcontent.c b/complexcontent.c index 4be08db1..8bd8db4f 100644 --- a/complexcontent.c +++ b/complexcontent.c @@ -156,7 +156,7 @@ void cComplexContent::AddImageWithFloatedText(cImage *image, int imageAlignment, NumChars += strlen(WrapperFloat.GetLine(i)); } // detect end of last word - for(; text[NumChars] != ' ' && text[NumChars] != '\0'; NumChars++) + for(; text[NumChars] != ' ' && text[NumChars] != '\0' && text[NumChars] != '\r' && text[NumChars] != '\n'; NumChars++) ; char *FloatedText; FloatedText = new char[NumChars+1]; |