[glade] Correct bounds checking for design view highlight
- From: Juan Pablo Ugarte <jpu src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glade] Correct bounds checking for design view highlight
- Date: Fri, 14 Mar 2014 14:14:09 +0000 (UTC)
commit 3a6dc69d708ed141a56c49a22aa5c9eda76d1ebe
Author: Chris Johns <christopher johns intel com>
Date: Thu Mar 13 12:27:15 2014 +0000
Correct bounds checking for design view highlight
The check should be for both x and y being less than 0, as when the
cursor is moved out of the design view "canvas" area, the values are set
to -1. Note this doesn't actually change behaviour, as the coordinates
are set to (-1, -1) whent the cursor leaves the area.
https://bugzilla.gnome.org/show_bug.cgi?id=723819
gladeui/glade-design-view.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gladeui/glade-design-view.c b/gladeui/glade-design-view.c
index 7d45b37..8811127 100644
--- a/gladeui/glade-design-view.c
+++ b/gladeui/glade-design-view.c
@@ -668,7 +668,7 @@ static void
glade_design_view_drag_iface_highlight (_GladeDrag *drag, gint x, gint y)
{
GladeDesignViewPrivate *priv = GLADE_DESIGN_VIEW (drag)->priv;
- gboolean highlight = !(x < 0 || y < y);
+ gboolean highlight = !(x < 0 || y < 0);
if (priv->drag_highlight == highlight)
return;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]