diff --git a/src/PlantUtils.h b/src/PlantUtils.h index ec05676a..0c11b6ce 100644 --- a/src/PlantUtils.h +++ b/src/PlantUtils.h @@ -505,7 +505,7 @@ class PlantUtils: public QObject if (splt->first <= splt->second) { if (i >= splt->first && i <= splt->second) ret[i-1] = "1"; } else { - if (i <= splt->first && i >= splt->second) ret[i-1] = "1"; + if (i >= splt->first || i <= splt->second) ret[i-1] = "1"; } } }