diff --git a/src/Mod/TechDraw/Gui/DlgPrefsTechDraw.ui b/src/Mod/TechDraw/Gui/DlgPrefsTechDraw.ui
index 6831bdbeee..c6411daa26 100644
--- a/src/Mod/TechDraw/Gui/DlgPrefsTechDraw.ui
+++ b/src/Mod/TechDraw/Gui/DlgPrefsTechDraw.ui
@@ -7,7 +7,7 @@
0
0
558
- 709
+ 742
@@ -147,6 +147,26 @@
+ -
+
+
+ Template Dot Size
+
+
+
+ -
+
+
+ 3.000000000000000
+
+
+ TemplateDotSize
+
+
+ /Mod/TechDraw/General
+
+
+
-
diff --git a/src/Mod/TechDraw/Gui/DlgPrefsTechDrawImp.cpp b/src/Mod/TechDraw/Gui/DlgPrefsTechDrawImp.cpp
index 9cba991497..128d594ef9 100644
--- a/src/Mod/TechDraw/Gui/DlgPrefsTechDrawImp.cpp
+++ b/src/Mod/TechDraw/Gui/DlgPrefsTechDrawImp.cpp
@@ -47,6 +47,7 @@ void DlgPrefsTechDrawImp::saveSettings()
cb_Angle->onSave();
cb_Faces->onSave();
cb_SectionEdges->onSave();
+ dsb_TemplateDot->onSave();
pcb_Normal->onSave();
pcb_Select->onSave();
@@ -72,6 +73,7 @@ void DlgPrefsTechDrawImp::loadSettings()
cb_Angle->onRestore();
cb_Faces->onRestore();
cb_SectionEdges->onRestore();
+ dsb_TemplateDot->onRestore();
pcb_Normal->onRestore();
pcb_Select->onRestore();
diff --git a/src/Mod/TechDraw/Gui/QGISVGTemplate.cpp b/src/Mod/TechDraw/Gui/QGISVGTemplate.cpp
index c14e4e738c..9a50bb59ee 100644
--- a/src/Mod/TechDraw/Gui/QGISVGTemplate.cpp
+++ b/src/Mod/TechDraw/Gui/QGISVGTemplate.cpp
@@ -180,6 +180,10 @@ void QGISVGTemplate::createClickHandles(void)
//TODO: Find location of special fields (first/third angle) and make graphics items for them
+ Base::Reference hGrp = App::GetApplication().GetUserParameter()
+ .GetGroup("BaseApp")->GetGroup("Preferences")->GetGroup("Mod/TechDraw/General");
+ double dotSize = hGrp->GetFloat("TemplateDotSize", 3.0);
+
while (boost::regex_search(begin, end, tagMatch, tagRegex)) {
if ( boost::regex_search(tagMatch[1].first, tagMatch[1].second, nameMatch, editableNameRegex) &&
boost::regex_search(tagMatch[1].first, tagMatch[1].second, xMatch, xRegex) &&
@@ -191,8 +195,7 @@ void QGISVGTemplate::createClickHandles(void)
double x = Rez::guiX(xStr.toDouble());
double y = Rez::guiX(yStr.toDouble());
- //TODO: this should probably be configurable without a code change
- double editClickBoxSize = Rez::guiX(1.5);
+ double editClickBoxSize = Rez::guiX(dotSize);
QColor editClickBoxColor = Qt::green;
double width = editClickBoxSize;