Skip to content

Commit 718dd79

Browse files
authored
Merge pull request ERGO-Code#1799 from jens-diewald/invalid-row-names
Correctly Report Invalid Row Names
2 parents 347bde4 + f7fe336 commit 718dd79

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/io/HMPSIO.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -564,7 +564,7 @@ HighsStatus writeModelAsMps(const HighsOptions& options,
564564
HighsStatus row_name_status =
565565
normaliseNames(options.log_options, "row", lp.num_row_, local_row_names,
566566
max_row_name_length);
567-
if (row_name_status == HighsStatus::kError) return col_name_status;
567+
if (row_name_status == HighsStatus::kError) return row_name_status;
568568
warning_found = row_name_status == HighsStatus::kWarning || warning_found;
569569

570570
HighsInt max_name_length = std::max(max_col_name_length, max_row_name_length);

0 commit comments

Comments
 (0)