Skip to content

Commit 71498c7

Browse files
committedOct 10, 2015
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)
1 parent 0da9306 commit 71498c7

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed
 

‎src/gui/qgsadvanceddigitizingdockwidget.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -89,12 +89,13 @@ bool QgsAdvancedDigitizingDockWidget::lineCircleIntersection( const QgsPoint& ce
8989
QgsAdvancedDigitizingDockWidget::QgsAdvancedDigitizingDockWidget( QgsMapCanvas* canvas, QWidget *parent )
9090
: QDockWidget( parent )
9191
, mMapCanvas( canvas )
92+
, mCurrentMapToolSupportsCad( false )
9293
, mCadEnabled( false )
9394
, mConstructionMode( false )
9495
, mSnappingMode(( QgsMapMouseEvent::SnappingMode ) QSettings().value( "/Cad/SnappingMode", QgsMapMouseEvent::SnapProjectConfig ).toInt() )
9596
, mCommonAngleConstraint( QSettings().value( "/Cad/CommonAngle", 90 ).toInt() )
96-
, mCadPointList( QList<QgsPoint>() )
97-
, mSnappedSegment( QList<QgsPoint>() )
97+
, mSnappedToVertex( false )
98+
, mSessionActive( false )
9899
, mErrorMessage( 0 )
99100
{
100101
setupUi( this );

0 commit comments

Comments
 (0)
Please sign in to comment.