summaryrefslogtreecommitdiffstats
path: root/src/ege-adjustment-action.cpp
diff options
context:
space:
mode:
authorJohn Smith <john.smith7545@yahoo.com>2012-08-02 12:56:07 +0000
committerJohn Smith <john.smith7545@yahoo.com>2012-08-02 12:56:07 +0000
commit3ea5c4679f829e91cc01fac6504639eb31244cbe (patch)
tree11bc439b9623ee326afb4062a84648d1d6fa3e21 /src/ege-adjustment-action.cpp
parentFix for 685689 : Panning with Shift+RMB fails when dropper tool selected (diff)
downloadinkscape-3ea5c4679f829e91cc01fac6504639eb31244cbe.tar.gz
inkscape-3ea5c4679f829e91cc01fac6504639eb31244cbe.zip
Fix for 167846 : GtkHScale regression
(bzr r11584)
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