diff options
| author | Eduard Braun <eduard.braun2@gmx.de> | 2018-03-13 18:51:53 +0000 |
|---|---|---|
| committer | Eduard Braun <eduard.braun2@gmx.de> | 2018-03-13 18:51:53 +0000 |
| commit | 9b2547b37b41e018659a9ece46310e2668b7f38b (patch) | |
| tree | 0234f961f4ed0c5bc187ad27fd5edf8020ee5e4d | |
| parent | Work around possible Pango bug where an empty 'variations' generates a '@' in... (diff) | |
| download | inkscape-9b2547b37b41e018659a9ece46310e2668b7f38b.tar.gz inkscape-9b2547b37b41e018659a9ece46310e2668b7f38b.zip | |
Avoid crash when confirming new value in InkSpinScale with Keyboard
It seems "InkSpinScale::set_focus_widget()" is never called, so
"_focus_widget" is never initialized and has an arbitrary value.
Avoid this by initializing to zero.
Why we never call set_focus_widget() is TBD...
Fixed bugs:
- https://bugs.launchpad.net/inkscape/+bug/1755464
| -rw-r--r-- | src/ui/widget/ink-spinscale.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ui/widget/ink-spinscale.h b/src/ui/widget/ink-spinscale.h index dda86597a..9eb297b1f 100644 --- a/src/ui/widget/ink-spinscale.h +++ b/src/ui/widget/ink-spinscale.h @@ -84,7 +84,7 @@ class InkSpinScale : public Gtk::Box InkScale* _scale; Gtk::SpinButton* _spinbutton; Glib::RefPtr<Gtk::Adjustment> _adjustment; - GtkWidget* _focus_widget; + GtkWidget* _focus_widget = nullptr; bool on_key_release_event(GdkEventKey* key_event) override; |
