Skip to content

Commit

Permalink
Fix uninitialized variables in advanced digitizing dock which meant
Browse files Browse the repository at this point in the history
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 71498c7
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/gui/qgsadvanceddigitizingdockwidget.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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 );
Expand Down

0 comments on commit 71498c7

Please sign in to comment.