Skip to content

Commit

Permalink
[TD]fix Preferences
Browse files Browse the repository at this point in the history
  • Loading branch information
WandererFan committed Feb 5, 2020
1 parent 992dc49 commit 0532df4
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 11 deletions.
4 changes: 2 additions & 2 deletions src/Mod/TechDraw/App/DrawViewBalloon.cpp
Expand Up @@ -283,8 +283,8 @@ int DrawViewBalloon::prefEnd(void) const
Base::Reference<ParameterGrp> hGrp = App::GetApplication().GetUserParameter().
GetGroup("BaseApp")->GetGroup("Preferences")->
GetGroup("Mod/TechDraw/Decorations");
int length = hGrp->GetFloat("BalloonArrow", 5.0);
return length;
int end = hGrp->GetInt("BalloonArrow", 0);
return end;
}

/*
Expand Down
4 changes: 2 additions & 2 deletions src/Mod/TechDraw/Gui/DlgPrefsTechDraw2.ui
Expand Up @@ -85,12 +85,12 @@
</item>
<item>
<property name="text">
<string>Custom</string>
<string>Auto</string>
</property>
</item>
<item>
<property name="text">
<string>Auto</string>
<string>Custom</string>
</property>
</item>
</widget>
Expand Down
14 changes: 7 additions & 7 deletions src/Mod/TechDraw/Gui/DlgPrefsTechDraw3.ui
Expand Up @@ -6,8 +6,8 @@
<rect>
<x>0</x>
<y>0</y>
<width>439</width>
<height>864</height>
<width>448</width>
<height>1152</height>
</rect>
</property>
<property name="sizePolicy">
Expand Down Expand Up @@ -284,7 +284,7 @@
</widget>
</item>
<item row="5" column="2">
<widget class="Gui::PrefUnitSpinBox" name="plsb_FontSize" native="true">
<widget class="Gui::PrefUnitSpinBox" name="plsb_FontSize">
<property name="sizePolicy">
<sizepolicy hsizetype="Preferred" vsizetype="Preferred">
<horstretch>0</horstretch>
Expand All @@ -294,7 +294,7 @@
<property name="toolTip">
<string>Dimension font size</string>
</property>
<property name="value" stdset="0">
<property name="value">
<double>4.000000000000000</double>
</property>
<property name="prefEntry" stdset="0">
Expand All @@ -306,7 +306,7 @@
</widget>
</item>
<item row="8" column="2">
<widget class="Gui::PrefUnitSpinBox" name="plsb_ArrowSize" native="true">
<widget class="Gui::PrefUnitSpinBox" name="plsb_ArrowSize">
<property name="sizePolicy">
<sizepolicy hsizetype="Preferred" vsizetype="Preferred">
<horstretch>0</horstretch>
Expand All @@ -316,7 +316,7 @@
<property name="toolTip">
<string>Dimension arrowhead size</string>
</property>
<property name="value" stdset="0">
<property name="value">
<double>5.000000000000000</double>
</property>
<property name="prefEntry" stdset="0">
Expand Down Expand Up @@ -627,7 +627,7 @@
</sizepolicy>
</property>
<property name="toolTip">
<string>Shape of balloon &quot;bubble&quot;.</string>
<string>Type of arrowhead on leader</string>
</property>
<property name="prefEntry" stdset="0">
<cstring>BalloonArrow</cstring>
Expand Down

0 comments on commit 0532df4

Please sign in to comment.