Skip to content
Permalink
Browse files

Fix uninitialized/not copied member variable

  • Loading branch information
nyalldawson committed Aug 31, 2017
1 parent 0be4c67 commit 75c65c590c593e274dc5ae61d2fd82afa170a656
Showing with 3 additions and 4 deletions.
  1. +1 −2 src/core/dxf/qgsdxfexport.cpp
  2. +2 −2 src/core/dxf/qgsdxfexport.h
@@ -374,8 +374,6 @@ QgsDxfExport::QgsDxfExport()
, mSymbolLayerCounter( 0 )
, mNextHandleId( DXF_HANDSEED )
, mBlockCounter( 0 )
, mFactor( 1 )
, mForce2d( false )
{
}

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

@@ -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.
You can’t perform that action at this time.