Skip to content
Permalink
Browse files

Fix uninitialized variables in advanced digitizing dock which meant

that sometimes advanced digitising tools would be activated
unexpectedly.

(Coverity... I'm disappointed. Stop slacking off! I've fixed 1000s
of these warnings you flagged yet you missed the ones which trigerred
actual real bugs)
  • Loading branch information
nyalldawson committed Oct 10, 2015
1 parent 0da9306 commit 71498c7c0fd6077ac7454ef689e19a47fee2cda4
Showing with 3 additions and 2 deletions.
  1. +3 −2 src/gui/qgsadvanceddigitizingdockwidget.cpp
@@ -89,12 +89,13 @@ bool QgsAdvancedDigitizingDockWidget::lineCircleIntersection( const QgsPoint& ce
QgsAdvancedDigitizingDockWidget::QgsAdvancedDigitizingDockWidget( QgsMapCanvas* canvas, QWidget *parent )
: QDockWidget( parent )
, mMapCanvas( canvas )
, mCurrentMapToolSupportsCad( false )
, mCadEnabled( false )
, mConstructionMode( false )
, mSnappingMode(( QgsMapMouseEvent::SnappingMode ) QSettings().value( "/Cad/SnappingMode", QgsMapMouseEvent::SnapProjectConfig ).toInt() )
, mCommonAngleConstraint( QSettings().value( "/Cad/CommonAngle", 90 ).toInt() )
, mCadPointList( QList<QgsPoint>() )
, mSnappedSegment( QList<QgsPoint>() )
, mSnappedToVertex( false )
, mSessionActive( false )
, mErrorMessage( 0 )
{
setupUi( this );

0 comments on commit 71498c7

Please sign in to comment.
You can’t perform that action at this time.