mirror of
https://github.com/clementine-player/Clementine
synced 2024-12-23 08:20:01 +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:
parent
b25101c1be
commit
2e35e09c96
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user