From e2ee3523de8ae18876d9ebbcf34b696cb24f8ced Mon Sep 17 00:00:00 2001 From: Mike Kestner Date: Thu, 25 Mar 2010 15:57:47 +0000 Subject: [PATCH] 2010-03-25 Mike Kestner * gdk/Rectangle.custom: off-by-one in Right/Bottom. [Fixes #591148] svn path=/trunk/gtk-sharp/; revision=154205 --- ChangeLog | 4 ++++ gdk/Rectangle.custom | 4 ++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index 9e111b5f2..df45d4b71 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2010-03-25 Mike Kestner + + * gdk/Rectangle.custom: off-by-one in Right/Bottom. [Fixes #591148] + 2009-12-28 Mike Kestner * glib/glue/Makefile.am: fix a copy/paste issue. diff --git a/gdk/Rectangle.custom b/gdk/Rectangle.custom index 143d22c03..e17fc47ed 100644 --- a/gdk/Rectangle.custom +++ b/gdk/Rectangle.custom @@ -121,10 +121,10 @@ public int Top { get { return Y; } } public int Bottom { - get { return Y + Height; } + get { return Y + Height - 1; } } public int Right { - get { return X + Width; } + get { return X + Width - 1; } } public int Left { get { return X; }