Skip to content

Commit

Permalink
Fix osdn.net ticket #41721: Image Compare: The image on the right doe…
Browse files Browse the repository at this point in the history
…s not open if the file exists only on the right
  • Loading branch information
sdottaka committed Mar 10, 2021
1 parent 8a7405a commit 899425b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Src/ImgMergeFrm.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit 899425b

Please sign in to comment.