Skip to content

Commit

Permalink
Make highlight width always bigger than rubberband
Browse files Browse the repository at this point in the history
  • Loading branch information
JuhoErvasti committed Nov 14, 2024
1 parent 11946b9 commit 1560d16
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/app/qgsmaptooladdfeature.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@
#include "qgsgeometry.h"
#include "qgsmapcanvas.h"
#include "qgsproject.h"
#include "qgssettingsentryimpl.h"
#include "qgssettingsregistrycore.h"
#include "qgsvectorlayer.h"
#include "qgslogger.h"
#include "qgsfeatureaction.h"
Expand Down Expand Up @@ -58,9 +60,13 @@ std::unique_ptr<QgsHighlight> QgsMapToolAddFeature::createHighlight( QgsVectorLa

break;
}

case Qgis::GeometryType::Polygon:
case Qgis::GeometryType::Line:
{
highlight->setWidth( 2 );
const double rubberbandWidth = QgsSettingsRegistryCore::settingsDigitizingLineWidth->value();

highlight->setWidth( static_cast<int>( rubberbandWidth ) + 1 );

break;
}
Expand Down

0 comments on commit 1560d16

Please sign in to comment.