Skip to content

Commit 053bf31

Browse files
committed
Avoid error when image filename is empty
1 parent 6e9f6dd commit 053bf31

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/WinIMergeLib/ImgDiffBuffer.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1535,7 +1535,7 @@ class CImgDiffBuffer
15351535
if (m_imgConverter[i].load(m_filename[i].c_str()))
15361536
m_imgConverter[i].render(m_imgOrig[i], 0, m_vectorImageZoomRatio);
15371537
}
1538-
if (!m_imgConverter[i].isValid())
1538+
if (!m_imgConverter[i].isValid() && !m_filename[i].empty())
15391539
{
15401540
bSucceeded = false;
15411541
m_lastErrorCode = (errno != 0) ? errno : ENOTSUP;

0 commit comments

Comments
 (0)