Make it more obvious when a image can be exported as a png and when not
This commit is contained in:
parent
5b07c96ce7
commit
0ddaa0bacd
|
@ -114,7 +114,7 @@ void MainWindow::openImage()
|
|||
return;
|
||||
}
|
||||
|
||||
if(matf.isOpened() && (!image.data || image.type() != CV_32FC1))
|
||||
if(matf.isOpened() && !image.data)
|
||||
{
|
||||
image.release();
|
||||
QMessageBox::warning(this, "Invalid file", "File selected dose not contain a valid image");
|
||||
|
|
Loading…
Reference in a new issue