[gimp] Don't access item->width and ->height directly
- From: Michael Natterer <mitch src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [gimp] Don't access item->width and ->height directly
- Date: Thu, 3 Sep 2009 07:11:52 +0000 (UTC)
commit 0b09278c17f0a4a28998550613e2e6c8b766e2aa
Author: Michael Natterer <mitch gimp org>
Date: Thu Sep 3 01:00:14 2009 +0200
Don't access item->width and ->height directly
app/tools/gimptexttool.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/app/tools/gimptexttool.c b/app/tools/gimptexttool.c
index 95975d8..d7cfd31 100644
--- a/app/tools/gimptexttool.c
+++ b/app/tools/gimptexttool.c
@@ -487,8 +487,8 @@ gimp_text_tool_button_press (GimpTool *tool,
gdouble x = coords->x - gimp_item_get_offset_x (item);
gdouble y = coords->y - gimp_item_get_offset_y (item);
- if (x < 0 || x >= item->width ||
- y < 0 || y >= item->height)
+ if (x < 0 || x >= gimp_item_get_width (item) ||
+ y < 0 || y >= gimp_item_get_height (item))
{
gimp_draw_tool_resume (GIMP_DRAW_TOOL (tool));
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]