Skip to content

Commit a4dca08

Browse files
JuhoErvastinyalldawson
authored andcommitted
Make highlight width always bigger than rubberband
1 parent 128a4a6 commit a4dca08

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

src/app/qgsmaptooladdfeature.cpp

+7-1
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@
2020
#include "qgsgeometry.h"
2121
#include "qgsmapcanvas.h"
2222
#include "qgsproject.h"
23+
#include "qgssettingsentryimpl.h"
24+
#include "qgssettingsregistrycore.h"
2325
#include "qgsvectorlayer.h"
2426
#include "qgslogger.h"
2527
#include "qgsfeatureaction.h"
@@ -58,9 +60,13 @@ std::unique_ptr<QgsHighlight> QgsMapToolAddFeature::createHighlight( QgsVectorLa
5860

5961
break;
6062
}
63+
64+
case Qgis::GeometryType::Polygon:
6165
case Qgis::GeometryType::Line:
6266
{
63-
highlight->setWidth( 2 );
67+
const double rubberbandWidth = QgsSettingsRegistryCore::settingsDigitizingLineWidth->value();
68+
69+
highlight->setWidth( static_cast<int>( rubberbandWidth ) + 1 );
6470

6571
break;
6672
}

0 commit comments

Comments
 (0)