app: overwrite cursors can have negative widths in RTL text

This commit is contained in:
Michael Natterer 2010-10-14 02:43:37 +02:00
parent 0c7ec05035
commit f3c2a75e44
1 changed files with 8 additions and 4 deletions

View File

@ -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;