Merge pull request #164 from peters/master

Bugfix: Don't attempt to set OCR language if string is null or empty.
This commit is contained in:
Matthew Hill
2015-07-16 13:32:22 -04:00

View File

@@ -414,7 +414,6 @@ namespace openalprnet
{ {
if (String::IsNullOrWhiteSpace(value)) if (String::IsNullOrWhiteSpace(value))
{ {
this->m_config->prewarp = "";
return; return;
} }
this->m_config->ocrLanguage = marshal_as<std::string>(value); this->m_config->ocrLanguage = marshal_as<std::string>(value);