From 899425bdcbf5aa7b0ef7b4164b15f8a2bfdd9e02 Mon Sep 17 00:00:00 2001 From: Takashi Sawanaka Date: Wed, 10 Mar 2021 09:13:37 +0900 Subject: [PATCH] Fix osdn.net ticket #41721: Image Compare: The image on the right does not open if the file exists only on the right --- Src/ImgMergeFrm.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Src/ImgMergeFrm.cpp b/Src/ImgMergeFrm.cpp index 57445a0c068..9d82493d078 100644 --- a/Src/ImgMergeFrm.cpp +++ b/Src/ImgMergeFrm.cpp @@ -444,7 +444,7 @@ BOOL CImgMergeFrame::OnCreateClient(LPCREATESTRUCT /*lpcs*/, LoadOptions(); bool bResult; - if (m_nBufferType[0] == BUFFERTYPE::UNNAMED) + if (std::count(m_nBufferType, m_nBufferType + m_filePaths.GetSize(), BUFFERTYPE::UNNAMED) == m_filePaths.GetSize()) { bResult = m_pImgMergeWindow->NewImages(m_filePaths.GetSize(), 1, 256, 256); }