Skip to content

Commit

Permalink
Fix uninitialized/not copied member variable
Browse files Browse the repository at this point in the history
  • Loading branch information
nyalldawson committed Aug 31, 2017
1 parent 0be4c67 commit 75c65c5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
3 changes: 1 addition & 2 deletions src/core/dxf/qgsdxfexport.cpp
Expand Up @@ -374,8 +374,6 @@ QgsDxfExport::QgsDxfExport()
, mSymbolLayerCounter( 0 )
, mNextHandleId( DXF_HANDSEED )
, mBlockCounter( 0 )
, mFactor( 1 )
, mForce2d( false )
{
}

Expand All @@ -397,6 +395,7 @@ QgsDxfExport &QgsDxfExport::operator=( const QgsDxfExport &dxfExport )
mBlockCounter = 0;
mCrs = QgsCoordinateReferenceSystem();
mFactor = dxfExport.mFactor;
mForce2d = dxfExport.mForce2d;
return *this;
}

Expand Down
4 changes: 2 additions & 2 deletions src/core/dxf/qgsdxfexport.h
Expand Up @@ -416,8 +416,8 @@ class CORE_EXPORT QgsDxfExport
QgsCoordinateReferenceSystem mCrs;
QgsMapSettings mMapSettings;
QHash<QString, int> mLayerNameAttribute;
double mFactor;
bool mForce2d;
double mFactor = 1.0;
bool mForce2d = false;
};

#endif // QGSDXFEXPORT_H

0 comments on commit 75c65c5

Please sign in to comment.