Sketcher: GUI PCH

This commit is contained in:
Abdullah Tahiri
2019-05-01 18:19:22 +02:00
committed by abdullahtahiriyo
parent e82c154d1d
commit dc32a0685b
15 changed files with 405 additions and 369 deletions

View File

@@ -27,9 +27,8 @@
# include <QApplication>
# include <QDialog>
# include <QMessageBox>
#endif
# include <Inventor/sensors/SoSensor.h>
#endif
#include <Base/Tools.h>
#include <Gui/Application.h>
@@ -141,7 +140,7 @@ void EditDatumDialog::exec(bool atCursor)
if (dlg.exec()) {
Base::Quantity newQuant = ui_ins_datum.labelEdit->value();
if (newQuant.isQuantity() || (Constr->Type == Sketcher::SnellsLaw && newQuant.isDimensionless())) {
// save the value for the history
// save the value for the history
ui_ins_datum.labelEdit->pushToHistory();
double newDatum = newQuant.getValue();