mirror of
https://gitlab.gnome.org/GNOME/gimp.git
synced 2025-10-05 21:02:42 +02:00
tools: Fix missing cursor for MyPaint Brush tool
Resolves #15001
In the MyPaint Brushes v2 port (ea8b9dc1
),
I implemented a cursor_update () function from the
parent class. However, I did not call the parent's
version of the function afterwards, so the MyPaint
Brush cursor was not being redrawn. This patch
adds the call to fix the cursor display issue.
This commit is contained in:
@@ -127,6 +127,8 @@ static void gimp_mybrush_tool_cursor_update (GimpTool *tool,
|
|||||||
options->view_zoom = (gimp_zoom_model_get_factor (shell->zoom) > 0.0f) ?
|
options->view_zoom = (gimp_zoom_model_get_factor (shell->zoom) > 0.0f) ?
|
||||||
gimp_zoom_model_get_factor (shell->zoom) : 1.0f;
|
gimp_zoom_model_get_factor (shell->zoom) : 1.0f;
|
||||||
options->view_rotation = shell->rotate_angle;
|
options->view_rotation = shell->rotate_angle;
|
||||||
|
|
||||||
|
GIMP_TOOL_CLASS (parent_class)->cursor_update (tool, coords, state, display);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
|
Reference in New Issue
Block a user