diff options
author | kamel5 <vdr.kamel5 (at) gmx (dot) net> | 2020-07-25 13:35:03 +0200 |
---|---|---|
committer | kamel5 <vdr.kamel5 (at) gmx (dot) net> | 2020-07-25 13:35:03 +0200 |
commit | 52c41ff5afbc3476aed32da3e088e71b2ee3ca39 (patch) | |
tree | 4d9ace963863acbed30eab803d0cc20d44d87029 /tools.c | |
parent | 5870b1ae4cbe4e4651c2662d8812ed4f22b69a67 (diff) | |
download | vdr-plugin-tvguide-52c41ff5afbc3476aed32da3e088e71b2ee3ca39.tar.gz vdr-plugin-tvguide-52c41ff5afbc3476aed32da3e088e71b2ee3ca39.tar.bz2 |
Fixed display groupname in cChannelGroupGrid::DrawHorizontal
Diffstat (limited to 'tools.c')
-rw-r--r-- | tools.c | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -10,7 +10,6 @@ #include <vdr/plugin.h> #include <vdr/skins.h> #include "services/epgsearch.h" - #include "tools.h" cPlugin *GetScraperPlugin(void) { @@ -42,7 +41,7 @@ std::string utf8_substr(const std::string& str, unsigned int start, long unsigne } if (q<=start+leng || leng==std::string::npos){ max=i; } if (min==std::string::npos || max==std::string::npos) { return ""; } - return str.substr(min,max); + return str.substr(min,max-min); } std::string CutText(std::string text, int width, const cFont *font) { |