diff --git a/src/SMESHGUI/SMESHGUI_MeshPatternDlg.cxx b/src/SMESHGUI/SMESHGUI_MeshPatternDlg.cxx index 67eb31d74..6e9554cb0 100755 --- a/src/SMESHGUI/SMESHGUI_MeshPatternDlg.cxx +++ b/src/SMESHGUI/SMESHGUI_MeshPatternDlg.cxx @@ -790,7 +790,7 @@ void SMESHGUI_MeshPatternDlg::onOpen() } QByteArray aDataArray = aFile.readAll(); - if (aDataArray.size() > 0) { + if (aDataArray.isEmpty()) { SUIT_MessageBox::information(this, tr("SMESH_ERROR"), tr("ERROR_OF_READING")); return;