Skip to content

Commit

Permalink
Sketcher: Fix Radius/Diameter shortcut
Browse files Browse the repository at this point in the history
  • Loading branch information
abdullahtahiriyo authored and wwmayer committed Jul 29, 2018
1 parent c84fe5f commit de7bab2
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/Mod/Sketcher/Gui/CommandConstraints.cpp
Expand Up @@ -5499,7 +5499,7 @@ void CmdSketcherConstrainDiameter::activated(int iMsg)
continue;

const Part::Geometry *geom = Obj->getGeometry(GeoId);

if (geom && geom->getTypeId() == Part::GeomArcOfCircle::getClassTypeId()) {
const Part::GeomArcOfCircle *arc = static_cast<const Part::GeomArcOfCircle *>(geom);
double radius = arc->getRadius();
Expand Down Expand Up @@ -5940,6 +5940,8 @@ Gui::Action * CmdSketcherCompConstrainRadDia::createAction(void)
pcAction->setIcon(arc1->icon());
int defaultId = 0;
pcAction->setProperty("defaultAction", QVariant(defaultId));

pcAction->setShortcut(QString::fromLatin1(sAccel));

return pcAction;
}
Expand Down

0 comments on commit de7bab2

Please sign in to comment.