[gnumeric] Compilation: portability fix.
- From: Morten Welinder <mortenw src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnumeric] Compilation: portability fix.
- Date: Thu, 14 Feb 2013 15:54:20 +0000 (UTC)
commit 031d1752458f5c6bdd4ec4c6f007f4e0b5d72a52
Author: Morten Welinder <terra gnome org>
Date: Thu Feb 14 10:54:05 2013 -0500
Compilation: portability fix.
ChangeLog | 5 +++++
src/gnm-so-path.c | 4 ++--
2 files changed, 7 insertions(+), 2 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index 1ed38e1..a2b654e 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2013-02-14 Morten Welinder <terra gnome org>
+
+ * src/gnm-so-path.c (so_path_view_set_bounds): Use G_MAXDOUBLE,
+ not MAXDOUBLE. Fixes #693761.
+
2013-02-10 Morten Welinder <terra gnome org>
* src/sheet-style.c (cb_unlink): gnm_style_unlink_dependents
diff --git a/src/gnm-so-path.c b/src/gnm-so-path.c
index 767ae57..43ed5cd 100644
--- a/src/gnm-so-path.c
+++ b/src/gnm-so-path.c
@@ -105,8 +105,8 @@ so_path_view_set_bounds (SheetObjectView *sov, double const *coords, gboolean vi
else {
unsigned i;
double mx, my, Mx, My;
- x0 = y0 = MAXDOUBLE;
- x1 = y1 = -MAXDOUBLE;
+ x0 = y0 = G_MAXDOUBLE;
+ x1 = y1 = -G_MAXDOUBLE;
for (i = 0; i < spv->paths->len; i++) {
goc_item_get_bounds (GOC_ITEM (g_ptr_array_index (spv->paths, i)),
&mx, &my, &Mx, &My);
if (mx < x0)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]