mirror of
https://github.com/taglib/taglib.git
synced 2025-06-03 09:08:09 -04:00
Check to make sure that there's content before trying to return it.
Almost the same as a patch from Clemens Fuchslocher CCMAIL:clemens@allesdurcheinander.de git-svn-id: svn://anonsvn.kde.org/home/kde/trunk/kdesupport/taglib@415211 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
This commit is contained in:
parent
fc8c7d357b
commit
10d8a4deac
@ -116,7 +116,7 @@ StringList APE::Item::toStringList() const
|
||||
|
||||
String APE::Item::toString() const
|
||||
{
|
||||
return d->text.front();
|
||||
return isEmpty() ? String::null : d->text.front();
|
||||
}
|
||||
|
||||
bool APE::Item::isEmpty() const
|
||||
|
Loading…
x
Reference in New Issue
Block a user