Added "inv" shortcut name for the invert filter

This commit is contained in:
Ingo Ruhnke 2011-01-02 15:33:02 +01:00
parent 91318eec98
commit 340d1d325c
2 changed files with 2 additions and 2 deletions

View file

@ -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);
} }

View file

@ -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);
} }