Skip to content

Commit

Permalink
0001291: plane offset precision is limited to 0.1
Browse files Browse the repository at this point in the history
  • Loading branch information
wwmayer committed Oct 30, 2013
1 parent 13efa16 commit 5e05f55
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions src/Mod/Sketcher/Gui/SketchOrientationDialog.cpp
Expand Up @@ -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"
Expand All @@ -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()));
Expand Down
2 changes: 1 addition & 1 deletion src/Mod/Sketcher/Gui/SketchOrientationDialog.ui
Expand Up @@ -85,7 +85,7 @@
<item>
<widget class="QDoubleSpinBox" name="Offset_doubleSpinBox">
<property name="decimals">
<number>1</number>
<number>2</number>
</property>
<property name="minimum">
<double>-999999999.000000000000000</double>
Expand Down

0 comments on commit 5e05f55

Please sign in to comment.