gnumeric r17249 - in trunk: . src
- From: mortenw svn gnome org
- To: svn-commits-list gnome org
- Subject: gnumeric r17249 - in trunk: . src
- Date: Sun, 29 Mar 2009 02:40:09 +0000 (UTC)
Author: mortenw
Date: Sun Mar 29 02:40:09 2009
New Revision: 17249
URL: http://svn.gnome.org/viewvc/gnumeric?rev=17249&view=rev
Log:
2009-03-28 Morten Welinder <terra gnome org>
* src/sheet.c (sheet_row_set_default_size_pixels,
sheet_row_set_default_size_pts): Add preconditions like in the
_col_ counterparts. Fixes #577145.
Modified:
trunk/ChangeLog
trunk/NEWS
trunk/src/graph.c
trunk/src/sheet.c
Modified: trunk/NEWS
==============================================================================
--- trunk/NEWS (original)
+++ trunk/NEWS Sun Mar 29 02:40:09 2009
@@ -5,6 +5,7 @@
* Plug leak.
* Fix mps loading crash. [#577138]
* Improve XIRR a bit.
+ * Fix Applix loading crash. [#577145]
--------------------------------------------------------------------------
Gnumeric 1.9.5
Modified: trunk/src/graph.c
==============================================================================
--- trunk/src/graph.c (original)
+++ trunk/src/graph.c Sun Mar 29 02:40:09 2009
@@ -36,6 +36,7 @@
#include "parse-util.h"
#include <goffice/data/go-data-impl.h>
#include <goffice/math/go-math.h>
+#include <goffice/utils/go-glib-extras.h>
#include <gsf/gsf-impl-utils.h>
#include <string.h>
Modified: trunk/src/sheet.c
==============================================================================
--- trunk/src/sheet.c (original)
+++ trunk/src/sheet.c Sun Mar 29 02:40:09 2009
@@ -4827,6 +4827,8 @@
void
sheet_row_set_default_size_pts (Sheet *sheet, double height_pts)
{
+ g_return_if_fail (IS_SHEET (sheet));
+
sheet_colrow_default_calc (sheet, height_pts, FALSE, TRUE);
sheet->priv->recompute_visibility = TRUE;
sheet->priv->reposition_objects.row = 0;
@@ -4834,6 +4836,8 @@
void
sheet_row_set_default_size_pixels (Sheet *sheet, int height_pixels)
{
+ g_return_if_fail (IS_SHEET (sheet));
+
sheet_colrow_default_calc (sheet, height_pixels, FALSE, FALSE);
sheet->priv->recompute_visibility = TRUE;
sheet->priv->reposition_objects.row = 0;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]