Skip to content

Commit

Permalink
MeterImage: Reset meter dimensions for invalid images
Browse files Browse the repository at this point in the history
  • Loading branch information
brianferguson committed Nov 14, 2020
1 parent acdaec3 commit 9ee33be
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Library/MeterImage.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,11 @@ void MeterImage::LoadImage(const std::wstring& imageName, bool bLoadAlways)
}
}
}
else
{
if (!m_WDefined) m_W = 0;
if (!m_HDefined) m_H = 0;
}
}

/*
Expand Down

0 comments on commit 9ee33be

Please sign in to comment.