[gimp] app: don't draw guides which are out of canvas
- From: Michael Natterer <mitch src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp] app: don't draw guides which are out of canvas
- Date: Sun, 2 May 2010 14:05:54 +0000 (UTC)
commit 2a289a75f4175a5af4ad173052f616e541132fe5
Author: Michael Natterer <mitch gimp org>
Date: Sun May 2 16:01:40 2010 +0200
app: don't draw guides which are out of canvas
app/display/gimpdisplayshell-draw.c | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/app/display/gimpdisplayshell-draw.c b/app/display/gimpdisplayshell-draw.c
index 41ce432..3245a2a 100644
--- a/app/display/gimpdisplayshell-draw.c
+++ b/app/display/gimpdisplayshell-draw.c
@@ -160,6 +160,8 @@ gimp_display_shell_draw_guide (GimpDisplayShell *shell,
gimp_display_shell_transform_xy (shell, 0, position, &x, &y, FALSE);
if (area && (y < area->y || y >= area->y + area->height))
return;
+ if (y < y1 || y >= y2)
+ return;
y1 = y2 = y;
break;
@@ -167,6 +169,8 @@ gimp_display_shell_draw_guide (GimpDisplayShell *shell,
gimp_display_shell_transform_xy (shell, position, 0, &x, &y, FALSE);
if (area && (x < area->x || x >= area->x + area->width))
return;
+ if (x < x1 || x >= x2)
+ return;
x1 = x2 = x;
break;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]