summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Schirrmacher <vdr.skinflatplus@schirrmacher.eu>2014-05-09 16:47:13 +0200
committerMartin Schirrmacher <vdr.skinflatplus@schirrmacher.eu>2014-05-09 16:47:13 +0200
commit8e18519ba1dcda0c9de0429ecf15fddb9c5411f4 (patch)
tree10128c56dcdf4c53150bff4c8bdf90f3149d3aef
parent5b31f3b6b214006f1452a195bc23e18ae8be4405 (diff)
downloadskin-flatplus-8e18519ba1dcda0c9de0429ecf15fddb9c5411f4.tar.gz
skin-flatplus-8e18519ba1dcda0c9de0429ecf15fddb9c5411f4.tar.bz2
fix floated text
-rw-r--r--HISTORY1
-rw-r--r--complexcontent.c2
2 files changed, 2 insertions, 1 deletions
diff --git a/HISTORY b/HISTORY
index 0656e060..c43c32d8 100644
--- a/HISTORY
+++ b/HISTORY
@@ -15,6 +15,7 @@ VDR Plugin 'skinflatplus' Revision History
- [add] more options to show disk usage (not show; timer & recording menu; always on the menu; always show)
- [add] horizontal line and group icon in SetItemEvent for group channels
- [add] new fnu_anthra_themes (thank You fnu/Frank)
+- [add] eventsview-flatplus.sql for epgd to prevent double information in epg-text, please see wiki for more information
2014-25-03: Version 0.2.1
- [fix] epgsearch progessbar in SetItemEvent, if epg start time is after now (2 minutes tolerance)
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];