summaryrefslogtreecommitdiffstats
path: root/src/widgets/spray-toolbar.cpp
diff options
context:
space:
mode:
authorJabier Arraiza Cenoz <jabier.arraiza@marker.es>2016-10-08 18:30:03 +0000
committerjabiertxof <info@marker.es>2016-10-08 18:30:03 +0000
commit0d65a6366721c314ca82e2600b7a2778e42bfdca (patch)
treed432377950a04fddd169c0b5bb8517345f9cee3e /src/widgets/spray-toolbar.cpp
parentKeep selection (diff)
parentmerge trunk-refactoring (diff)
downloadinkscape-0d65a6366721c314ca82e2600b7a2778e42bfdca.tar.gz
inkscape-0d65a6366721c314ca82e2600b7a2778e42bfdca.zip
Update to trunk
(bzr r15142.1.6)
Diffstat (limited to 'src/widgets/spray-toolbar.cpp')
-rw-r--r--src/widgets/spray-toolbar.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/widgets/spray-toolbar.cpp b/src/widgets/spray-toolbar.cpp
index a724637e3..f456bc763 100644
--- a/src/widgets/spray-toolbar.cpp
+++ b/src/widgets/spray-toolbar.cpp
@@ -211,7 +211,7 @@ static void sp_toggle_pressure_scale( GtkToggleAction* act, gpointer data)
Inkscape::Preferences *prefs = Inkscape::Preferences::get();
gboolean active = gtk_toggle_action_get_active(act);
prefs->setBool("/tools/spray/usepressurescale", active);
- if(active == true){
+ if(active){
prefs->setDouble("/tools/spray/scale_variation", 0);
}
GObject *tbl = G_OBJECT(data);
@@ -238,7 +238,7 @@ static void sp_toggle_picker( GtkToggleAction* act, gpointer data )
Inkscape::Preferences *prefs = Inkscape::Preferences::get();
gboolean active = gtk_toggle_action_get_active(act);
prefs->setBool("/tools/spray/picker", active);
- if(active == true){
+ if(active){
prefs->setBool("/dialogs/clonetiler/dotrace", false);
SPDesktop *dt = SP_ACTIVE_DESKTOP;
if (Inkscape::UI::Dialog::CloneTiler *ct = get_clone_tiler_panel(dt)){