Skip to content

Commit

Permalink
Fix crash with error on autocreate savepoint
Browse files Browse the repository at this point in the history
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 af64734
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/qgsvectorlayerundopassthroughcommand.h
Expand Up @@ -82,8 +82,8 @@ class CORE_EXPORT QgsVectorLayerUndoPassthroughCommand : public QgsVectorLayerUn
QString errorMessage() const;

private:
QString mSavePointId;
QString mError;
QString mSavePointId;
bool mHasError;
bool mRecreateSavePoint;
};
Expand Down

0 comments on commit af64734

Please sign in to comment.