Skip to content

Commit

Permalink
Fixed parsing of boolean keyword values to ignore whitespace.
Browse files Browse the repository at this point in the history
  • Loading branch information
oscarkramer committed Jan 13, 2021
1 parent a990c18 commit 890b601
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/base/ossimKeywordlist.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1460,7 +1460,7 @@ bool ossimKeywordlist::getBoolKeywordValue(bool& rtn_val,
{
found = true;
ossimString yesno (val_str);
yesno.upcase();
yesno.upcase().trim();
if ((yesno == "YES") || (yesno == "TRUE") || (yesno == "1"))
rtn_val = true;
else if ((yesno == "NO") || (yesno == "FALSE") || (yesno == "0"))
Expand Down

0 comments on commit 890b601

Please sign in to comment.