Skip to content

Commit

Permalink
GeneralImage: Fixed issue from 82bb6d9
Browse files Browse the repository at this point in the history
  • Loading branch information
brianferguson committed Sep 1, 2022
1 parent 8ef9e11 commit 8b155b5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Library/GeneralImage.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -79,8 +79,8 @@ void GeneralImage::ReadOptions(ConfigParser& parser, const WCHAR* section, const
{
m_Options.m_Crop.left = (FLOAT)parser.ParseInt(tokens[0].c_str(), 0);
m_Options.m_Crop.top = (FLOAT)parser.ParseInt(tokens[1].c_str(), 0);
m_Options.m_Crop.right = (FLOAT)parser.ParseInt(tokens[2].c_str(), 0);
m_Options.m_Crop.bottom = (FLOAT)parser.ParseInt(tokens[3].c_str(), 0);
m_Options.m_Crop.right = (FLOAT)parser.ParseInt(tokens[2].c_str(), 0) + m_Options.m_Crop.left;
m_Options.m_Crop.bottom = (FLOAT)parser.ParseInt(tokens[3].c_str(), 0) + m_Options.m_Crop.top;

if (tokSize > 4ULL)
{
Expand Down

0 comments on commit 8b155b5

Please sign in to comment.