From 8e18519ba1dcda0c9de0429ecf15fddb9c5411f4 Mon Sep 17 00:00:00 2001 From: Martin Schirrmacher Date: Fri, 9 May 2014 16:47:13 +0200 Subject: fix floated text --- complexcontent.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'complexcontent.c') 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]; -- cgit v1.2.3