+ allow to always run macros, fix disappearing grid in sketcher

This commit is contained in:
wmayer 2014-05-13 16:20:51 +02:00
parent 0874bfac75
commit c212e75fcc
3 changed files with 3 additions and 2 deletions

View File

@ -676,6 +676,7 @@ MacroCommand::MacroCommand(const char* name)
#endif
{
sGroup = QT_TR_NOOP("Macros");
eType = 0;
}
void MacroCommand::activated(int iMsg)

View File

@ -198,8 +198,8 @@ void ViewProvider2DObject::updateData(const App::Property* prop)
if (prop->getTypeId() == Part::PropertyPartShape::getClassTypeId()) {
Base::BoundBox3d bbox = static_cast<const Part::PropertyPartShape*>(prop)->getBoundingBox();
GridRoot->removeAllChildren();
if (!bbox.IsValid()) return;
GridRoot->removeAllChildren();
Base::Placement place = static_cast<const Part::PropertyPartShape*>(prop)->getComplexData()->getPlacement();
place.invert();
Base::ViewProjMatrix proj(place.toMatrix());

View File

@ -287,7 +287,7 @@ void TaskPadParameters::onModeChanged(int index)
case 0:
pcPad->Type.setValue("Length");
// Avoid error message
if (ui->lengthEdit->getQuantity() < Precision::Confusion())
if (ui->lengthEdit->getQuantity().getValue() < Precision::Confusion())
ui->lengthEdit->setValue(5.0);
break;
case 1: pcPad->Type.setValue("UpToLast"); break;