summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorKarl Cheng <qantas94heavy@gmail.com>2019-02-20 10:44:44 +0000
committerQantas94Heavy <qantas94heavy@gmail.com>2019-02-20 22:39:17 +0000
commiteb8e97da20ee6099b7ccf1937d8bfbc2fdcad2c8 (patch)
treeb3eb9b4d97ebfd149b2b8cd173408c300f7a9afd /src
parentRemove unneded code from previous commit (diff)
downloadinkscape-eb8e97da20ee6099b7ccf1937d8bfbc2fdcad2c8.tar.gz
inkscape-eb8e97da20ee6099b7ccf1937d8bfbc2fdcad2c8.zip
Fix use of uninitialized variable
It seems this was introduced in ce3c5920 through a copy/paste typo (bg_color_active -> bg_color). The whole line was then mistakenly removed in 0ee0c59c as it appeared to be redundant.
Diffstat (limited to 'src')
-rw-r--r--src/ui/dialog/filter-effects-dialog.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/ui/dialog/filter-effects-dialog.cpp b/src/ui/dialog/filter-effects-dialog.cpp
index 8a246de62..2945e8a0b 100644
--- a/src/ui/dialog/filter-effects-dialog.cpp
+++ b/src/ui/dialog/filter-effects-dialog.cpp
@@ -1944,6 +1944,7 @@ bool FilterEffectsDialog::PrimitiveList::on_draw_signal(const Cairo::RefPtr<Cair
(bg_color.alpha + fg_color.alpha)/2.0};
GdkRGBA bg_color_active, fg_color_active;
+ gdk_rgba_parse(&bg_color_active, "#f0f0f0"); // Fix bg as a light gray
gtk_style_context_get_color(sc, GTK_STATE_FLAG_ACTIVE, &fg_color_active);
GdkRGBA mid_color_active = {(bg_color_active.red + fg_color_active.red)/2.0,