summaryrefslogtreecommitdiffstats
path: root/src/ege-adjustment-action.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/ege-adjustment-action.cpp')
-rw-r--r--src/ege-adjustment-action.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ege-adjustment-action.cpp b/src/ege-adjustment-action.cpp
index 398eb9d33..7881498b9 100644
--- a/src/ege-adjustment-action.cpp
+++ b/src/ege-adjustment-action.cpp
@@ -781,7 +781,7 @@ void value_changed_cb( GtkSpinButton* spin, EgeAdjustmentAction* act )
{
if ( gtk_widget_has_focus( GTK_WIDGET(spin) ) ) {
gint start = 0, end = 0;
- if (gtk_editable_get_selection_bounds (GTK_EDITABLE(spin), &start, &end)
+ if (GTK_IS_EDITABLE(spin) && gtk_editable_get_selection_bounds (GTK_EDITABLE(spin), &start, &end)
&& start != end) {
// #167846, #363000 If the spin button has a selection, its probably
// because we got here from a Tab key from another spin, if so dont defocus