Fix bug reading (int/bool) parameters that aren't specified in Params

This fix a crash using ModifySelectionCommand commands.
This commit is contained in:
David Capello 2015-12-17 17:59:46 -03:00
parent 7f8cbfd250
commit 38128f7346

View File

@ -61,7 +61,7 @@ namespace app {
template<typename T>
const T get_as(const char* name) const {
std::istringstream stream(m_params[name]);
T value;
T value = T();
stream >> value;
return value;
}