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 authored and github-actions[bot] committed Feb 26, 2021
1 parent 8784771 commit ed96805
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 ed96805

Please sign in to comment.