Skip to content

Commit

Permalink
+ fixes #1327: Crash in System::initSolution()
Browse files Browse the repository at this point in the history
  • Loading branch information
wwmayer committed Dec 9, 2013
1 parent c86b7e1 commit 5e628ae
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/Mod/Sketcher/App/freegcs/GCS.cpp
Expand Up @@ -748,7 +748,9 @@ void System::initSolution()
}

VEC_I components(boost::num_vertices(g));
int componentsSize = boost::connected_components(g, &components[0]);
int componentsSize = 0;
if (!components.empty())
componentsSize = boost::connected_components(g, &components[0]);

// identification of equality constraints and parameter reduction
std::set<Constraint *> reducedConstrs; // constraints that will be eliminated through reduction
Expand Down

0 comments on commit 5e628ae

Please sign in to comment.