Skip to content
Browse files
Fix crash with error on autocreate savepoint
member variables are initialized in the order they are defined in the
header. We cannot use mError to initialize mSavePointId if the former is
declared after in the header.

References #17535
  • Loading branch information
m-kuhn committed Dec 12, 2017
1 parent 057f2b3 commit af647340c21dad068400b0db6209e5675276f6e8
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/core/qgsvectorlayerundopassthroughcommand.h
@@ -82,8 +82,8 @@ class CORE_EXPORT QgsVectorLayerUndoPassthroughCommand : public QgsVectorLayerUn
QString errorMessage() const;

QString mSavePointId;
QString mError;
QString mSavePointId;
bool mHasError;
bool mRecreateSavePoint;

0 comments on commit af64734

Please sign in to comment.