[gnumeric] Fix one more graph size issue when the graph is in its own sheet. [#565]



commit a906474995346486f10617cb5b2b2cc772cc809e
Author: Jean Brefort <jean brefort normalesup org>
Date:   Sun Feb 21 08:58:16 2021 +0100

    Fix one more graph size issue when the graph is in its own sheet. [#565]

 ChangeLog                | 5 +++++
 NEWS                     | 1 +
 src/sheet-object-graph.c | 2 +-
 3 files changed, 7 insertions(+), 1 deletion(-)
---
diff --git a/ChangeLog b/ChangeLog
index 64c0157d5..53c7ff1c0 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2021-02-21  Jean Brefort  <jean brefort normalesup org>
+
+       * src/sheet-object-graph.c (gnm_sog_bounds_changed): don't take anchors
+       into account when updating the graph inside a graph sheet. [#565]
+
 2021-02-14  Morten Welinder  <terra gnome org>
 
        * src/cell.c (gnm_cell_get_effective_style): New function to
diff --git a/NEWS b/NEWS
index d3c27e4c8..c388a213d 100644
--- a/NEWS
+++ b/NEWS
@@ -6,6 +6,7 @@ Andreas:
 
 Jean:
        * Fix graph size issue when the graph is in its own sheet. [#516]
+       * Fix one more graph size issue when the graph is in its own sheet. [#565]
 
 JohnDenker:
        * Fix ssgrep problem when used as a filter.  [#552]
diff --git a/src/sheet-object-graph.c b/src/sheet-object-graph.c
index 2ab4e4688..bb232dc15 100644
--- a/src/sheet-object-graph.c
+++ b/src/sheet-object-graph.c
@@ -570,7 +570,7 @@ gnm_sog_bounds_changed (SheetObject *so)
        SheetObjectGraph *sog = GNM_SO_GRAPH (so);
 
        /* If it has not been realized there is no renderer yet */
-       if (sog->renderer != NULL)
+       if (sog->renderer != NULL && so->sheet->sheet_type == GNM_SHEET_DATA)
                sog_update_graph_size (sog);
 }
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]