Skip to content

Commit

Permalink
Add version 1.5.2
Browse files Browse the repository at this point in the history
  • Loading branch information
Willem3141 committed Dec 5, 2023
1 parent da0c5e6 commit 5c6234c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions src/boundaryreader.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -41,10 +41,10 @@ BoundaryReader::readBoundary(const QString& fileName,
return Boundary(map);
}

int topLength = numbers[2].toInt(&ok);
int topLength = numbers[1].toInt(&ok);
if (!ok) {
error = QString("Top length should be an integer (was [%1])").
arg(numbers[2]);
arg(numbers[1]);
return Boundary(map);
}
if (topLength <= 0) {
Expand All @@ -53,10 +53,10 @@ BoundaryReader::readBoundary(const QString& fileName,
return Boundary(map);
}

int sinkLength = numbers[1].toInt(&ok);
int sinkLength = numbers[2].toInt(&ok);
if (!ok) {
error = QString("Sink length should be an integer (was [%1])").
arg(numbers[1]);
arg(numbers[2]);
return Boundary(map);
}
if (sinkLength <= 0) {
Expand Down
2 changes: 1 addition & 1 deletion src/gui/riverapp.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
*/
int main(int argc, char* argv[]) {

const QString APP_VERSION = "1.5.1";
const QString APP_VERSION = "1.5.2";

if (argc <= 1) {
QApplication a(argc, argv);
Expand Down

0 comments on commit 5c6234c

Please sign in to comment.