Skip to content

Commit

Permalink
Fix compile error
Browse files Browse the repository at this point in the history
Signed-off-by: Geoff Hutchison <[email protected]>
  • Loading branch information
ghutchis committed Sep 15, 2023
1 parent f8af4fc commit 1280257
Showing 1 changed file with 18 additions and 18 deletions.
36 changes: 18 additions & 18 deletions avogadro/quantumio/genericoutput.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -70,27 +70,27 @@ bool GenericOutput::read(std::istream& in, Core::Molecule& molecule)
if (r->name() == "cclib") {
reader = r->newInstance();
break;
if (r->identifier().compare(0, 9, "OpenBabel") == 0) {
reader = r->newInstance();
break;
}
} else if (r->identifier().compare(0, 9, "OpenBabel") == 0) {
reader = r->newInstance();
break;
}
}
}

// rewind the stream
in.seekg(0, std::ios::beg);
in.clear();

if (reader) {
bool success = reader->readFile(fileName(), molecule);
delete reader;
return success;
} else {
appendError(
"Could not determine the program used to generate this output file.");
delete reader;
return false;
}
// rewind the stream
in.seekg(0, std::ios::beg);
in.clear();

if (reader) {
bool success = reader->readFile(fileName(), molecule);
delete reader;
return success;
} else {
appendError(
"Could not determine the program used to generate this output file.");
delete reader;
return false;
}
}

} // namespace Avogadro::QuantumIO

0 comments on commit 1280257

Please sign in to comment.