From 9ee33be5ac4c35da1fa2e2c341ce79aa39d67e82 Mon Sep 17 00:00:00 2001 From: Brian Date: Fri, 13 Nov 2020 22:40:51 -0700 Subject: [PATCH] MeterImage: Reset meter dimensions for invalid images --- Library/MeterImage.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Library/MeterImage.cpp b/Library/MeterImage.cpp index a7fb706d9..1be2bf592 100644 --- a/Library/MeterImage.cpp +++ b/Library/MeterImage.cpp @@ -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; + } } /*