mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-10 08:36:32 +01:00
Make an empty-string non-affirmative so that AxisView::set_marked_for_display works properly when the visible gui property does not exist.
git-svn-id: svn://localhost/ardour2/branches/3.0@9833 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
parent
216ad7fe90
commit
a7057d6965
1 changed files with 4 additions and 0 deletions
|
|
@ -561,6 +561,10 @@ string_is_affirmative (const std::string& str)
|
||||||
{
|
{
|
||||||
/* to be used only with XML data - not intended to handle user input */
|
/* to be used only with XML data - not intended to handle user input */
|
||||||
|
|
||||||
|
if (str.empty ()) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
return str == "1" || str == "y" || str == "Y" || (!g_strncasecmp(str.c_str(), "yes", str.length()));
|
return str == "1" || str == "y" || str == "Y" || (!g_strncasecmp(str.c_str(), "yes", str.length()));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue