summaryrefslogtreecommitdiff
blob: 0ba7cc96a60517a1e517ff21509df2d4af92e97d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/qtiplot/src/core/ApplicationWindow.cpp b/qtiplot/src/core/ApplicationWindow.cpp
index 56c52a7..b643e50 100755
--- a/qtiplot/src/core/ApplicationWindow.cpp
+++ b/qtiplot/src/core/ApplicationWindow.cpp
@@ -4326,7 +4326,7 @@ Table * ApplicationWindow::importExcelCrossplatform(const QString& fn, int sheet
 
 		int rows = sh->GetTotalRows();
 		int cols = sh->GetTotalCols();
-		if (rows == 1 && !cols){
+		if (!rows && !cols){
 			if (sheet > 0 && sheet == currentSheet){
 				QMessageBox::critical(this, tr("QtiPlot"), tr("Sheet %1 is empty, operation aborted!").arg(sheet));
 				return NULL;