mirror of https://github.com/GNOME/gimp.git
app: overwrite cursors can have negative widths in RTL text
This commit is contained in:
parent
0c7ec05035
commit
f3c2a75e44
|
@ -208,12 +208,16 @@ gimp_canvas_text_cursor_transform (GimpCanvasItem *item,
|
|||
GimpCanvasTextCursorPrivate *private = GET_PRIVATE (item);
|
||||
|
||||
gimp_display_shell_transform_xy_f (shell,
|
||||
private->x,
|
||||
private->y,
|
||||
MIN (private->x,
|
||||
private->x + private->width),
|
||||
MIN (private->y,
|
||||
private->y + private->height),
|
||||
x, y);
|
||||
gimp_display_shell_transform_xy_f (shell,
|
||||
private->x + private->width,
|
||||
private->y + private->height,
|
||||
MAX (private->x,
|
||||
private->x + private->width),
|
||||
MAX (private->y,
|
||||
private->y + private->height),
|
||||
w, h);
|
||||
|
||||
*w -= *x;
|
||||
|
|
Loading…
Reference in New Issue