textview: Fix comparison being the wrong way

Keynav failed when the position did _not_ change.
This commit is contained in:
Benjamin Otte 2011-09-23 22:22:35 +02:00
parent 6ab7b87a02
commit bd8e9085ab

View File

@ -5324,7 +5324,7 @@ gtk_text_view_move_cursor_internal (GtkTextView *text_view,
old_xpos = priv->xoffset;
old_ypos = priv->yoffset;
gtk_text_view_move_viewport (text_view, scroll_step, count);
if ((old_xpos != priv->xoffset || old_ypos != priv->yoffset) &&
if ((old_xpos == priv->xoffset && old_ypos == priv->yoffset) &&
leave_direction != -1 &&
!gtk_widget_keynav_failed (GTK_WIDGET (text_view),
leave_direction))