Skip to content

Commit

Permalink
str(Sketcher.Constraint('Radius', 1, 2)) should not return "<Constrai…
Browse files Browse the repository at this point in the history
…nt '?'>"

str(Sketcher.Constraint('Radius', 1, 2)) should not return "<Constraint '?'>", it should return "<Constraint 'Radius'>"
  • Loading branch information
SuzanneSoy committed Mar 7, 2017
1 parent 0196d50 commit 07d224e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/Mod/Sketcher/App/ConstraintPyImp.cpp
Expand Up @@ -484,6 +484,7 @@ std::string ConstraintPy::representation(void) const
case Coincident : result << "'Coincident'>";break;
case Horizontal : result << "'Horizontal' (" << getConstraintPtr()->First << ")>";break;
case Vertical : result << "'Vertical' (" << getConstraintPtr()->First << ")>";break;
case Radius : result << "'Radius'>";break;
case Parallel : result << "'Parallel'>";break;
case Tangent :
if (this->getConstraintPtr()->Third == Constraint::GeoUndef)
Expand Down

0 comments on commit 07d224e

Please sign in to comment.