Sketcher: GUI PCH
This commit is contained in:
committed by
abdullahtahiriyo
parent
e82c154d1d
commit
dc32a0685b
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user