From b29d9600dc05ef9aec5db5a40bf6de7c219fcff5 Mon Sep 17 00:00:00 2001 From: Dieter Hametner Date: Thu, 12 Jul 2007 20:52:15 +0000 Subject: - Fixes missing caption in recordings info box. --- epg_events.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/epg_events.cpp b/epg_events.cpp index e9524b3..049e27f 100644 --- a/epg_events.cpp +++ b/epg_events.cpp @@ -138,7 +138,7 @@ namespace vdrlive const string EpgRecording::Caption() const { - if (!m_ownCaption) { + if (m_ownCaption) { return EpgInfo::Caption(); } if (!m_recording) { @@ -196,7 +196,7 @@ namespace vdrlive string name(m_recording->Name()); size_t index = name.find_last_of('~'); if (index != string::npos) { - name = name.substr(index, name.length()); + name = name.substr(index+1); } return name; } -- cgit v1.2.3