1
0
mirror of https://github.com/clementine-player/Clementine synced 2024-12-23 16:28:19 +01:00

Songinfo/lyrics: Fix index error in "UltimateLyricsProvider::Extract"

(second argument to "QString,mid()" is number of characters, not end index)
This commit is contained in:
Eduard Braun 2015-10-10 22:35:11 +02:00
parent b25101c1be
commit 2e35e09c96

View File

@ -223,7 +223,7 @@ QString UltimateLyricsProvider::Extract(const QString& source,
int end_idx = source.indexOf(end, begin_idx);
if (end_idx == -1) return QString();
return source.mid(begin_idx, end_idx - begin_idx - 1);
return source.mid(begin_idx, end_idx - begin_idx);
}
void UltimateLyricsProvider::ApplyExcludeRule(const Rule& rule,