Skip to content

Commit

Permalink
Fix marker outline bug & geometry type assignment
Browse files Browse the repository at this point in the history
  • Loading branch information
Withalion committed Feb 25, 2025
1 parent b8ec74d commit 61d047d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 3 additions & 2 deletions src/3d/qgsrubberband3d.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -263,6 +263,7 @@ QgsRubberBand3D::MarkerType QgsRubberBand3D::markerType() const
void QgsRubberBand3D::setMarkerOutlineStyle( const Qt::PenStyle style )
{
mMarkerOutlineStyle = style;
setMarkerType( markerType() );
}

Qt::PenStyle QgsRubberBand3D::markerOutlineStyle() const
Expand Down Expand Up @@ -334,10 +335,10 @@ void QgsRubberBand3D::addPoint( const QgsPoint &pt )
updateGeometry();
}

void QgsRubberBand3D::setGeometry( const QgsGeometry &geometry, const Qgis::GeometryType geometryType )
void QgsRubberBand3D::setGeometry( const QgsGeometry &geometry )
{
mGeometry = geometry;
mGeometryType = geometryType;
mGeometryType = geometry.type();

updateGeometry();
}
Expand Down
2 changes: 1 addition & 1 deletion src/3d/qgsrubberband3d.h
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ class _3D_EXPORT QgsRubberBand3D
*
* \since QGIS 3.44
*/
void setGeometry( const QgsGeometry &geometry, Qgis::GeometryType geometryType );
void setGeometry( const QgsGeometry &geometry );

void removeLastPoint();

Expand Down

0 comments on commit 61d047d

Please sign in to comment.