diff --git a/plugin/teksi_wastewater/tools/twwmaptooladdfeature.py b/plugin/teksi_wastewater/tools/twwmaptooladdfeature.py index 7286af2b2..db316c7c4 100644 --- a/plugin/teksi_wastewater/tools/twwmaptooladdfeature.py +++ b/plugin/teksi_wastewater/tools/twwmaptooladdfeature.py @@ -481,7 +481,7 @@ def canvasReleaseEvent(self, event): if self.firstPoint: # If the first point was set before, we are doing the second one lp1 = self.rubberband.asGeometry().asPolyline()[0] lp2 = self.rubberband.asGeometry().asPolyline()[1] - width = 0.2 + width = 0.1 if QApplication.keyboardModifiers() & Qt.ControlModifier: dlg = QDialog() dlg.setLayout(QGridLayout()) @@ -494,9 +494,9 @@ def canvasReleaseEvent(self, event): bb.rejected.connect(dlg.reject) if dlg.exec_(): try: - width = float(txt.text()) + width = float(txt.text()) / 2 except ValueError: - width = 0.2 + width = 0.1 length = math.sqrt(math.pow(lp1.x() - lp2.x(), 2) + math.pow(lp1.y() - lp2.y(), 2)) xd = lp2.x() - lp1.x()