[goffice] Fix axis title position when at high coordinate.
- From: Jean Bréfort <jbrefort src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [goffice] Fix axis title position when at high coordinate.
- Date: Wed, 7 Jan 2015 15:42:39 +0000 (UTC)
commit 327a5f8ff4b9497e3af0e1d27b0ad83cc983445f
Author: Jean Brefort <jean brefort normalesup org>
Date: Wed Jan 7 16:42:19 2015 +0100
Fix axis title position when at high coordinate.
ChangeLog | 4 ++++
goffice/graph/gog-axis.c | 4 ++--
2 files changed, 6 insertions(+), 2 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index 474f1d8..e322c42 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,9 @@
2015-01-07 Jean Brefort <jean brefort normalesup org>
+ * goffice/graph/gog-axis.c: fix axis title position when at high coordinate.
+
+2015-01-07 Jean Brefort <jean brefort normalesup org>
+
* goffice/data/go-data-impl.h: add GO_DATA_HAS_VALUE to GODataFlags.
* goffice/data/go-data.c: new go_data_has_value().
* goffice/data/go-data.h: ditto.
diff --git a/goffice/graph/gog-axis.c b/goffice/graph/gog-axis.c
index 8f714f4..632daa2 100644
--- a/goffice/graph/gog-axis.c
+++ b/goffice/graph/gog-axis.c
@@ -4226,11 +4226,11 @@ gog_axis_view_size_allocate (GogView *view, GogViewAllocation const *bbox)
if (type == GOG_AXIS_X) {
d = plot_area->y - tmp.y - axis_view->padding_high;
tmp.y += d;
- tmp.h = plot_area->h + axis_view->padding_low - d;
+ tmp.h = plot_area->h + axis_view->padding_low + axis_view->padding_high;
} else {
d = plot_area->x - tmp.x - axis_view->padding_low;
tmp.x += d;
- tmp.w = plot_area->w + axis_view->padding_high - d;
+ tmp.w = plot_area->w + axis_view->padding_low + axis_view->padding_high;
}
}
available.w = tmp.w;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]