Skip to content

Commit c9e9289

Browse files
committedDec 23, 2015
some fixes (missing include, duplicated line, wrong variable name)
1 parent b33b935 commit c9e9289

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed
 

‎src/app/nodetool/qgsmaptoolnodetool.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@
3030

3131
#include <QMouseEvent>
3232
#include <QRubberBand>
33+
#include <QSettings>
3334

3435
QgsMapToolNodeTool::QgsMapToolNodeTool( QgsMapCanvas* canvas )
3536
: QgsMapToolEdit( canvas )
@@ -129,7 +130,6 @@ void QgsMapToolNodeTool::canvasMoveEvent( QgsMapMouseEvent* e )
129130
mSelectRubberBand = nullptr;
130131
}
131132
QgsGeometryRubberBand* rb = new QgsGeometryRubberBand( mCanvas, mSelectedFeature->geometry()->type() );
132-
QSettings settings;
133133
QColor color(
134134
settings.value( "/qgis/digitizing/line_color_red", 255 ).toInt(),
135135
settings.value( "/qgis/digitizing/line_color_green", 0 ).toInt(),

‎src/app/qgsoptions.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -804,7 +804,7 @@ QgsOptions::QgsOptions( QWidget *parent, Qt::WindowFlags fl ) :
804804
mFillColorToolButton->setContext( "gui" );
805805
mFillColorToolButton->setDefaultColor( QColor( 255, 0, 0, 30 ) );
806806

807-
mLineGhostCheckBox->setChecked( settings.value( "/qgis/digitizing/line_ghost", false ).toBool() );
807+
mLineGhostCheckBox->setChecked( mSettings->value( "/qgis/digitizing/line_ghost", false ).toBool() );
808808

809809
//default snap mode
810810
mDefaultSnapModeComboBox->insertItem( 0, tr( "To vertex" ), "to vertex" );

0 commit comments

Comments
 (0)
Please sign in to comment.