[Summary] Fixed issue with incorrectly "remembered" zoom_in cursor. The issue looks pretty old and appeared only if we use mouse wheel on zoom slider if zoom tool is enabled.

[Reviwed by] Paul Davis
This commit is contained in:
GZharun 2014-12-10 17:09:23 +02:00
parent f5622bc91f
commit 2e55735887

View file

@ -1032,7 +1032,7 @@ Editor::track_canvas_key_press (GdkEventKey*)
{
/* XXX: event does not report the modifier key pressed down, AFAICS, so use the Keyboard object instead */
if (mouse_mode == Editing::MouseZoom && Keyboard::the_keyboard().key_is_down (GDK_Control_L)) {
set_canvas_cursor (_cursors->zoom_out, true);
set_canvas_cursor (_cursors->zoom_out);
}
return false;
@ -1042,7 +1042,7 @@ bool
Editor::track_canvas_key_release (GdkEventKey*)
{
if (mouse_mode == Editing::MouseZoom && !Keyboard::the_keyboard().key_is_down (GDK_Control_L)) {
set_canvas_cursor (_cursors->zoom_in, true);
set_canvas_cursor (_cursors->zoom_in);
}
return false;