FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Fix a crash when extruding TTF text. · ppd/solvespace@aaab8a0 · GitHub

Repository navigation

Commit aaab8a0

Browse files
authored andcommitted
Fix a crash when extruding TTF text.
1 parent 4362954 commit aaab8a0

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

‎src/entity.cpp‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -568,6 +568,10 @@ void EntityBase::PointGetExprsInWorkplane(hEntity wrkpl, Expr **u, Expr **v) con
568568
}
569569

570570
ExprVector EntityBase::PointGetExprsInWorkplane(hEntity wrkpl) const {
571+
if(wrkpl.v == Entity::FREE_IN_3D.v) {
572+
return PointGetExprs();
573+
}
574+
571575
ExprVector r;
572576
PointGetExprsInWorkplane(wrkpl, &r.x, &r.y);
573577
r.z = Expr::From(0.0);
@@ -824,6 +828,7 @@ void EntityBase::GenerateEquations(IdList<Equation,hEquation> *l) const {
824828
}
825829

826830
case Type::TTF_TEXT: {
831+
if(SK.GetEntity(point[0])->type != Type::POINT_IN_2D) break;
827832
EntityBase *b = SK.GetEntity(point[2]);
828833
EntityBase *c = SK.GetEntity(point[3]);
829834
ExprVector eb = b->PointGetExprsInWorkplane(workplane);

0 commit comments

Comments
 (0)

Back | FazBrowse Home | New Git URL