[goffice] Fixed the distance from a widget item.
- From: Jean Bréfort <jbrefort src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [goffice] Fixed the distance from a widget item.
- Date: Wed, 27 Mar 2013 15:42:47 +0000 (UTC)
commit 6f91c3ab166dcb1dd70012ce2ab9e98747070ade
Author: Jean Brefort <jean brefort normalesup org>
Date: Wed Mar 27 16:48:43 2013 +0100
Fixed the distance from a widget item.
ChangeLog | 5 +++++
goffice/canvas/goc-widget.c | 2 +-
2 files changed, 6 insertions(+), 1 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index e948927..14bd42c 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,10 @@
2013-03-27 Jean Brefort <jean brefort normalesup org>
+ * goffice/canvas/goc-widget.c (goc_widget_distance): fixed distance
+ evaluation. This ensure that the cursor is correctly updated.
+
+2013-03-27 Jean Brefort <jean brefort normalesup org>
+
* goffice/gtk/go-format-sel.ui: fix currency selector visibility. [#696647]
2013-03-26 Morten Welinder <terra gnome org>
diff --git a/goffice/canvas/goc-widget.c b/goffice/canvas/goc-widget.c
index d8d65b6..bf70dd7 100644
--- a/goffice/canvas/goc-widget.c
+++ b/goffice/canvas/goc-widget.c
@@ -703,7 +703,7 @@ goc_widget_distance (GocItem *item, double x, double y, GocItem **near_item)
}
if (y < widget->y) {
dy = widget->y - y;
- } else if (x < widget->y + widget->h) {
+ } else if (y < widget->y + widget->h) {
dy = 0;
} else {
dy = y - widget->y - widget->h;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]