[gnumeric] Fixed aspect ratio for graph sheets. [#691472]
- From: Jean BrÃfort <jbrefort src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnumeric] Fixed aspect ratio for graph sheets. [#691472]
- Date: Mon, 14 Jan 2013 15:35:57 +0000 (UTC)
commit ddf9866816bb9ec6584778101efff6fc599946e0
Author: Jean Brefort <jean brefort normalesup org>
Date: Mon Jan 14 16:35:08 2013 +0100
Fixed aspect ratio for graph sheets. [#691472]
ChangeLog | 6 ++++++
NEWS | 3 +++
src/sheet-control-gui.c | 2 +-
src/sheet-object-graph.c | 2 +-
4 files changed, 11 insertions(+), 2 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index edea68a..c1b2d98 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2013-01-14 Jean Brefort <jean brefort normalesup org>
+
+ * src/sheet-control-gui.c (sheet_control_gui_new): typo.
+ * src/sheet-object-graph.c (cb_graph_size_changed): do not remoe twice the
+ top and bottom margins when displaying a graph sheet. [#691472]
+
2013-01-10 Morten Welinder <terra gnome org>
* src/func.c (gnm_func_lookup_or_add_placeholder): Drop copy_name
diff --git a/NEWS b/NEWS
index 1f8cbfc..110409c 100644
--- a/NEWS
+++ b/NEWS
@@ -8,6 +8,9 @@ Andreas:
* Show argument names for python functions. [#690681]
* Fix loading of ODF files with named expressions. [#690925]
+Jean:
+ * Fixed aspect ratio for graph sheets. [#691472]
+
Morten:
* Fix a few compiler warnings.
* Always compile ssconvert, ssindex, and ssgrep.
diff --git a/src/sheet-control-gui.c b/src/sheet-control-gui.c
index 853ad71..5b70d60 100644
--- a/src/sheet-control-gui.c
+++ b/src/sheet-control-gui.c
@@ -1727,7 +1727,7 @@ sheet_control_gui_new (SheetView *sv, WBCGtk *wbcg)
gtk_widget_override_background_color (scg->vs, GTK_STATE_NORMAL, &gs_white);
g_object_set_data (G_OBJECT (scg->vs), "sheet-control", scg);
if (sheet->sheet_objects) {
- /* we need an idle function because not every thing is intialized at this point */
+ /* we need an idle function because not every thing is initialized at this point */
sheet_object_new_view ((SheetObject *) sheet->sheet_objects->data,
(SheetObjectViewContainer*) scg->vs);
g_idle_add ((GSourceFunc) post_create_cb, scg);
diff --git a/src/sheet-object-graph.c b/src/sheet-object-graph.c
index e1eb766..f49277d 100644
--- a/src/sheet-object-graph.c
+++ b/src/sheet-object-graph.c
@@ -167,7 +167,7 @@ cb_graph_size_changed (GocItem *item, GtkAllocation *allocation)
h = print_info_get_paper_height (pi, GTK_UNIT_POINTS);
print_info_get_margins (pi, &top, &bottom, &left, &right, &edge_to_below_header, &edge_to_above_footer);
w -= left + right;
- h -= top + bottom + edge_to_above_footer + edge_to_below_header;
+ h -= edge_to_above_footer + edge_to_below_header;
g_object_get (item, "renderer", &rend, NULL);
g_object_get (rend, "model", &graph, NULL);
gog_graph_set_size (graph, w, h);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]