From 5e05f55a539e25de0bf8c5b71893b1f4e4e71051 Mon Sep 17 00:00:00 2001 From: wmayer Date: Wed, 30 Oct 2013 10:28:50 +0100 Subject: [PATCH] 0001291: plane offset precision is limited to 0.1 --- src/Mod/Sketcher/Gui/SketchOrientationDialog.cpp | 2 ++ src/Mod/Sketcher/Gui/SketchOrientationDialog.ui | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/Mod/Sketcher/Gui/SketchOrientationDialog.cpp b/src/Mod/Sketcher/Gui/SketchOrientationDialog.cpp index 22f7576bc..d82e322cc 100644 --- a/src/Mod/Sketcher/Gui/SketchOrientationDialog.cpp +++ b/src/Mod/Sketcher/Gui/SketchOrientationDialog.cpp @@ -30,6 +30,7 @@ #include #include #include +#include #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())); diff --git a/src/Mod/Sketcher/Gui/SketchOrientationDialog.ui b/src/Mod/Sketcher/Gui/SketchOrientationDialog.ui index dd0e5f69c..ae8f00c95 100644 --- a/src/Mod/Sketcher/Gui/SketchOrientationDialog.ui +++ b/src/Mod/Sketcher/Gui/SketchOrientationDialog.ui @@ -85,7 +85,7 @@ - 1 + 2 -999999999.000000000000000