[gnumeric] Do not ungrab a not grabbed item. [#620369]
- From: Jean Bréfort <jbrefort src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnumeric] Do not ungrab a not grabbed item. [#620369]
- Date: Wed, 2 Jun 2010 18:09:28 +0000 (UTC)
commit 386a3c14d79de598bbb45d389468100eeb990367
Author: Jean Brefort <jean brefort normalesup org>
Date: Wed Jun 2 20:07:07 2010 +0200
Do not ungrab a not grabbed item. [#620369]
ChangeLog | 5 +++++
NEWS | 3 +++
src/item-bar.c | 3 ++-
3 files changed, 10 insertions(+), 1 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index c8bb786..7c29ca1 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2010-06-02 Jean Brefort <jean brefort normalesup org>
+
+ * src/item-bar.c (item_bar_button_released): do not ungrab a not grabbed
+ item. [#620369]
+
2010-05-31 Andreas J. Guelzow <aguelzow pyrshep ca>
* component/Gnumeric-embed.xml.in: added Wilcoxon Signed-Rank items
diff --git a/NEWS b/NEWS
index 4b1b271..3f0e387 100644
--- a/NEWS
+++ b/NEWS
@@ -4,6 +4,9 @@ Andreas:
* Add Wilcoxon Signed Rank Test tools for one and two populations.
* Fix spin button handling in various tool dialogs. [#619971]
+Jean:
+ * Do not ungrab a not grabbed item. [#620369]
+
Morten:
* Make sure windows for help commands show up on right screen.
* Fix dependency tabulation undo issue.
diff --git a/src/item-bar.c b/src/item-bar.c
index 7afd632..f115f32 100644
--- a/src/item-bar.c
+++ b/src/item-bar.c
@@ -1017,7 +1017,8 @@ static gboolean
item_bar_button_released (GocItem *item, int button, double x, double y)
{
ItemBar *ib = ITEM_BAR (item);
- gnm_simple_canvas_ungrab (item, 0);
+ if (item == goc_canvas_get_grabbed_item (item->canvas))
+ gnm_simple_canvas_ungrab (item, 0);
if (ib->colrow_being_resized >= 0) {
if (ib->has_resize_guides)
item_bar_resize_stop (ib, ib->colrow_resize_size);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]