Skip to content

Commit

Permalink
remove warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
3nids committed Dec 11, 2014
1 parent 0ba3f5b commit e115616
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/app/qgsadvanceddigitizingdockwidget.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -356,7 +356,7 @@ void QgsAdvancedDigitizingDockWidget::triggerMouseMoveEvent()
void QgsAdvancedDigitizingDockWidget::lockConstraint( bool activate /* default true */ )
{
QObject* obj = sender();
CadConstraint* constraint;
CadConstraint* constraint = NULL;
if ( obj == mAngleLineEdit || obj == mLockAngleButton )
{
constraint = mAngleConstraint;
Expand Down Expand Up @@ -747,7 +747,7 @@ bool QgsAdvancedDigitizingDockWidget::applyConstraints( QgsMapMouseEvent* e )
// --- angle
if ( !mAngleConstraint->isLocked() && previousPointExist )
{
double angle;
double angle = 0.0;
if ( penulPointExist && mAngleConstraint->relative() )
{
// previous angle
Expand Down

0 comments on commit e115616

Please sign in to comment.