|
From: <fbe...@us...> - 2014-09-24 11:49:39
|
Revision: 21154
http://sourceforge.net/p/sbml/code/21154
Author: fbergmann
Date: 2014-09-24 11:49:37 +0000 (Wed, 24 Sep 2014)
Log Message:
-----------
- only stop flattening, if there are errors until now it would also stop when warnings were encountered
Modified Paths:
--------------
trunk/libsbml/examples/c++/comp/flattenModelAdvanced.cpp
Modified: trunk/libsbml/examples/c++/comp/flattenModelAdvanced.cpp
===================================================================
--- trunk/libsbml/examples/c++/comp/flattenModelAdvanced.cpp 2014-09-23 14:57:23 UTC (rev 21153)
+++ trunk/libsbml/examples/c++/comp/flattenModelAdvanced.cpp 2014-09-24 11:49:37 UTC (rev 21154)
@@ -168,7 +168,7 @@
SBMLDocument* document = readSBML(inputFile);
- if (document->getNumErrors() > 0)
+ if (document->getNumErrors(LIBSBML_SEV_ERROR) > 0)
{
cerr << "Encountered the following SBML errors:" << endl;
document->printErrors(cerr);
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|