[gnumeric] GUI: Fix split pane problem.
- From: Morten Welinder <mortenw src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnumeric] GUI: Fix split pane problem.
- Date: Fri, 28 Feb 2014 19:19:00 +0000 (UTC)
commit fb59ffb7006727e454dae4b59d993d06a8295f7f
Author: Morten Welinder <terra gnome org>
Date: Fri Feb 28 14:18:44 2014 -0500
GUI: Fix split pane problem.
ChangeLog | 2 ++
NEWS | 1 +
src/sheet-control-gui.c | 3 +++
3 files changed, 6 insertions(+), 0 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index 28a479a..faf79ce 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -2,6 +2,8 @@
* src/sheet-control-gui.c (resize_pane_pos, set_resize_pane_pos):
If row/column canvas is not visible, ignore them.
+ (scg_gtk_paned_set_position): Don't allow negative position.
+ Fixes #725375.
* src/ssdiff.c (diff_sheets_attrs): Detect more sheet attribute
changes.
diff --git a/NEWS b/NEWS
index baa352e..ab7b706 100644
--- a/NEWS
+++ b/NEWS
@@ -45,6 +45,7 @@ Morten:
* Fix xls/biff8 import of comment's text attributes. [#725168]
* Improve the xls macro-roundtrip situation. [#725220]
* Improve ssdiff for sheet attributes.
+ * Fix split pane problem. [#725375]
--------------------------------------------------------------------------
Gnumeric 1.12.11
diff --git a/src/sheet-control-gui.c b/src/sheet-control-gui.c
index 1e984ab..d64102a 100644
--- a/src/sheet-control-gui.c
+++ b/src/sheet-control-gui.c
@@ -1306,6 +1306,9 @@ resize_pane_pos (SheetControlGUI *scg, GtkPaned *p,
static void
scg_gtk_paned_set_position (SheetControlGUI *scg, GtkPaned *p, int pane_pos)
{
+ /* A negative position is special to GtkPaned. */
+ pane_pos = MAX (pane_pos, 0);
+
if (p == scg->vpane)
scg->vpos = pane_pos;
else
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]