[gimp] app: overwrite cursors can have negative widths in RTL text
- From: Michael Natterer <mitch src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp] app: overwrite cursors can have negative widths in RTL text
- Date: Thu, 14 Oct 2010 00:44:18 +0000 (UTC)
commit f3c2a75e44a1838766c70c34bb7b6955d75bfc52
Author: Michael Natterer <mitch gimp org>
Date: Thu Oct 14 02:43:37 2010 +0200
app: overwrite cursors can have negative widths in RTL text
app/display/gimpcanvastextcursor.c | 12 ++++++++----
1 files changed, 8 insertions(+), 4 deletions(-)
---
diff --git a/app/display/gimpcanvastextcursor.c b/app/display/gimpcanvastextcursor.c
index c4ad313..d3e640b 100644
--- a/app/display/gimpcanvastextcursor.c
+++ b/app/display/gimpcanvastextcursor.c
@@ -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;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]