epgview: only hide info1 if info2 begins with info1 (port from tuxbox-cvs. THX Gaucho316)

Origin commit data
------------------
Commit: 6138e42948
Author: gixxpunk <thomas.harfmann@gmail.com>
Date: 2012-10-11 (Thu, 11 Oct 2012)

Origin message was:
------------------
- epgview: only hide info1 if info2 begins with info1 (port from tuxbox-cvs. THX Gaucho316)
This commit is contained in:
gixxpunk
2012-10-11 20:31:22 +02:00
committed by Jacek Jendrzej
parent ae00d07352
commit 1c22455ae6

View File

@@ -544,7 +544,7 @@ int CEpgData::show(const t_channel_id channel_id, uint64_t a_id, time_t* a_start
}
}
// Compare strings normally if not positively found to be equal before
if (false == bHide && false == (std::string::npos == epgData.info2.find(epgData.info1))) {
if (false == bHide && 0 == epgData.info2.find(epgData.info1)) {
bHide = true;
}
}