Added "inv" shortcut name for the invert filter
This commit is contained in:
parent
91318eec98
commit
340d1d325c
2 changed files with 2 additions and 2 deletions
|
@ -53,7 +53,7 @@ AxisFilter::from_string(const std::string& str)
|
||||||
if (p != std::string::npos)
|
if (p != std::string::npos)
|
||||||
rest = str.substr(p+1);
|
rest = str.substr(p+1);
|
||||||
|
|
||||||
if (filtername == "invert")
|
if (filtername == "invert" || filtername == "inv")
|
||||||
{
|
{
|
||||||
return AxisFilterPtr(new InvertAxisFilter);
|
return AxisFilterPtr(new InvertAxisFilter);
|
||||||
}
|
}
|
||||||
|
|
|
@ -37,7 +37,7 @@ ButtonFilter::from_string(const std::string& str)
|
||||||
{
|
{
|
||||||
return ButtonFilterPtr(new ToggleButtonFilter);
|
return ButtonFilterPtr(new ToggleButtonFilter);
|
||||||
}
|
}
|
||||||
else if (filtername == "invert")
|
else if (filtername == "invert" || filtername == "inv")
|
||||||
{
|
{
|
||||||
return ButtonFilterPtr(new InvertButtonFilter);
|
return ButtonFilterPtr(new InvertButtonFilter);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue