gnumeric r17093 - in trunk: . src
- From: guelzow svn gnome org
- To: svn-commits-list gnome org
- Subject: gnumeric r17093 - in trunk: . src
- Date: Sat, 24 Jan 2009 20:07:10 +0000 (UTC)
Author: guelzow
Date: Sat Jan 24 20:07:10 2009
New Revision: 17093
URL: http://svn.gnome.org/viewvc/gnumeric?rev=17093&view=rev
Log:
2009-01-24 Andreas J. Guelzow <aguelzow pyrshep ca>
* src/print.c (compute_group): use g_warning rather than
g_return_val_if_fail. Fixes 568991.
Modified:
trunk/ChangeLog
trunk/NEWS
trunk/src/print.c
Modified: trunk/NEWS
==============================================================================
--- trunk/NEWS (original)
+++ trunk/NEWS Sat Jan 24 20:07:10 2009
@@ -12,6 +12,7 @@
* Add Log-Rank Test to Kaplan-Meier tool. [#558582]
* Add the name of the response variable to the regression tool
output. [#400019]
+ * Fix critical when printing/ [#568991]
Henry Law:
* Fix dependency problem with constructed ranges. [#562363]
Modified: trunk/src/print.c
==============================================================================
--- trunk/src/print.c (original)
+++ trunk/src/print.c Sat Jan 24 20:07:10 2009
@@ -600,7 +600,13 @@
/* FIXME : Find a way to inform the user that one of the rows/cols does
* not fit on a page
*/
- g_return_val_if_fail (count > 0, 1);
+
+ if (count ==0) {
+ g_warning (_("Even one cell is too large for this page."));
+
+ /* If we do not return at least one we are going into an infinite loop! */
+ return 1;
+ }
return count;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]