0001291: plane offset precision is limited to 0.1

This commit is contained in:
wmayer
2013-10-30 10:28:50 +01:00
parent 13efa161b2
commit 5e05f55a53
2 changed files with 3 additions and 1 deletions

View File

@@ -30,6 +30,7 @@
#include <Gui/BitmapFactory.h>
#include <Gui/MainWindow.h>
#include <Base/Tools.h>
#include <Base/UnitsApi.h>
#include "ui_SketchOrientationDialog.h"
#include "SketchOrientationDialog.h"
@@ -40,6 +41,7 @@ SketchOrientationDialog::SketchOrientationDialog(void)
: QDialog(Gui::getMainWindow()), ui(new Ui_SketchOrientationDialog)
{
ui->setupUi(this);
ui->Offset_doubleSpinBox->setDecimals(Base::UnitsApi::getDecimals());
onPreview();
connect(ui->Reverse_checkBox, SIGNAL(clicked(bool)), this, SLOT(onPreview()));