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
(cherry picked from commit e89d715)
  • Loading branch information
nyalldawson committed Feb 28, 2021
1 parent 6503207 commit 3c2a2f5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/gui/qgshighlight.h
Expand Up @@ -184,7 +184,7 @@ class GUI_EXPORT QgsHighlight : public QgsMapCanvasItem
QBrush mBrush;
QPen mPen;
QgsGeometry *mGeometry = nullptr;
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 3c2a2f5

Please sign in to comment.