Skip to content

Commit

Permalink
Fix crashes in QgsHighlight if layer is removed before highlight
Browse files Browse the repository at this point in the history
  • Loading branch information
nyalldawson committed Feb 27, 2021
1 parent 6b22f63 commit a5c755c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/gui/qgshighlight.h
Expand Up @@ -195,7 +195,7 @@ class GUI_EXPORT QgsHighlight : public QgsMapCanvasItem
QPen mPen;
QgsGeometry mOriginalGeometry;
QgsGeometry mGeometry;
QgsMapLayer *mLayer = nullptr;
QPointer< QgsMapLayer > mLayer;
QgsFeature mFeature;
double mBuffer = 0; // line / stroke buffer in pixels
double mMinWidth = 0; // line / stroke minimum width in pixels
Expand Down

0 comments on commit a5c755c

Please sign in to comment.