gnumeric r17194 - in trunk: . src
- From: mortenw svn gnome org
- To: svn-commits-list gnome org
- Subject: gnumeric r17194 - in trunk: . src
- Date: Fri, 13 Mar 2009 16:47:16 +0000 (UTC)
Author: mortenw
Date: Fri Mar 13 16:47:15 2009
New Revision: 17194
URL: http://svn.gnome.org/viewvc/gnumeric?rev=17194&view=rev
Log:
2009-03-13 Morten Welinder <terra gnome org>
* src/cell.c (gnm_cell_set_format): Improve precondition.
Modified:
trunk/ChangeLog
trunk/src/cell.c
Modified: trunk/src/cell.c
==============================================================================
--- trunk/src/cell.c (original)
+++ trunk/src/cell.c Fri Mar 13 16:47:15 2009
@@ -665,10 +665,12 @@
gnm_cell_set_format (GnmCell *cell, char const *format)
{
GnmRange r;
- GnmStyle *mstyle = gnm_style_new ();
+ GnmStyle *mstyle;
- g_return_if_fail (mstyle != NULL);
+ g_return_if_fail (cell != NULL);
+ g_return_if_fail (format != NULL);
+ mstyle = gnm_style_new ();
gnm_style_set_format_text (mstyle, format);
r.start = r.end = cell->pos;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]