Commit 3ca7e095 authored by Jody Goldberg's avatar Jody Goldberg Committed by Jody Goldberg

fix typo.

2001-08-14  Jody Goldberg <jgoldberg@home.com>

	* src/format-template.c (format_template_range_check) : fix typo.

	* src/xml-io.c (xml_sheet_read) : Add some sanity checking for bogus
	  inputs.
parent 975551c0
2001-08-14 Jody Goldberg <jgoldberg@home.com>
* src/format-template.c (format_template_range_check) : fix typo.
* src/xml-io.c (xml_sheet_read) : Add some sanity checking for bogus
inputs.
* src/expr.c (expr_to_graph_vector) : new routine.
2001-08-14 Jody Goldberg <jgoldberg@home.com>
......
2001-08-14 Jody Goldberg <jgoldberg@home.com>
* src/format-template.c (format_template_range_check) : fix typo.
* src/xml-io.c (xml_sheet_read) : Add some sanity checking for bogus
inputs.
* src/expr.c (expr_to_graph_vector) : new routine.
2001-08-14 Jody Goldberg <jgoldberg@home.com>
......
2001-08-14 Jody Goldberg <jgoldberg@home.com>
* src/format-template.c (format_template_range_check) : fix typo.
* src/xml-io.c (xml_sheet_read) : Add some sanity checking for bogus
inputs.
* src/expr.c (expr_to_graph_vector) : new routine.
2001-08-14 Jody Goldberg <jgoldberg@home.com>
......
2001-08-14 Jody Goldberg <jgoldberg@home.com>
* src/format-template.c (format_template_range_check) : fix typo.
* src/xml-io.c (xml_sheet_read) : Add some sanity checking for bogus
inputs.
* src/expr.c (expr_to_graph_vector) : new routine.
2001-08-14 Jody Goldberg <jgoldberg@home.com>
......
......@@ -878,13 +878,13 @@ format_template_range_check (FormatTemplate *ft, Range s, gboolean display_error
char *errmsg;
if (diff_col_high > 0 && diff_row_high > 0) {
errmsg = g_strdup_printf (_("The target region is too small, is should be at least %d rows by %d columns"),
errmsg = g_strdup_printf (_("The target region is too small. It should be at least %d rows by %d columns"),
diff_row_high_ft, diff_col_high_ft);
} else if (diff_col_high > 0) {
errmsg = g_strdup_printf (_("The target region is too small, it should be at least %d columns wide"),
errmsg = g_strdup_printf (_("The target region is too small. It should be at least %d columns wide"),
diff_col_high_ft);
} else if (diff_row_high > 0) {
errmsg = g_strdup_printf (_("The target region is too small, it should be at least %d rows high"),
errmsg = g_strdup_printf (_("The target region is too small. It should be at least %d rows high"),
diff_row_high_ft);
} else {
errmsg = NULL;
......
......@@ -2750,6 +2750,7 @@ xml_sheet_read (XmlParseContext *ctxt, xmlNodePtr tree)
Sheet *sheet = NULL;
double zoom_factor;
char *val;
int tmp;
if (strcmp (tree->name, "Sheet")){
fprintf (stderr,
......@@ -2777,24 +2778,26 @@ xml_sheet_read (XmlParseContext *ctxt, xmlNodePtr tree)
ctxt->sheet = sheet;
sheet->display_formulas = e_xml_get_bool_prop_by_name_with_default (tree,
"DisplayFormulas", FALSE);
"DisplayFormulas", FALSE);
sheet->hide_zero = e_xml_get_bool_prop_by_name_with_default (tree,
"HideZero", FALSE);
"HideZero", FALSE);
sheet->hide_grid = e_xml_get_bool_prop_by_name_with_default (tree,
"HideGrid", FALSE);
"HideGrid", FALSE);
sheet->hide_col_header = e_xml_get_bool_prop_by_name_with_default (tree,
"HideColHeader", FALSE);
"HideColHeader", FALSE);
sheet->hide_row_header = e_xml_get_bool_prop_by_name_with_default (tree,
"HideRowHeader", FALSE);
"HideRowHeader", FALSE);
sheet->display_outlines = e_xml_get_bool_prop_by_name_with_default (tree,
"DisplayOutlines", TRUE);
"DisplayOutlines", TRUE);
sheet->outline_symbols_below = e_xml_get_bool_prop_by_name_with_default (tree,
"OutlineSymbolsBelow", TRUE);
"OutlineSymbolsBelow", TRUE);
sheet->outline_symbols_right = e_xml_get_bool_prop_by_name_with_default (tree,
"OutlineSymbolsRight", TRUE);
"OutlineSymbolsRight", TRUE);
xml_get_value_int (tree, "MaxCol", &sheet->cols.max_used);
xml_get_value_int (tree, "MaxRow", &sheet->rows.max_used);
xml_get_value_int (tree, "MaxCol", &tmp);
sheet->cols.max_used = (0 <= tmp && tmp < SHEET_MAX_COLS) ? tmp : SHEET_MAX_COLS-1;
xml_get_value_int (tree, "MaxRow", &tmp);
sheet->rows.max_used = (0 <= tmp && tmp < SHEET_MAX_ROWS) ? tmp : SHEET_MAX_ROWS-1;
xml_get_value_double (tree, "Zoom", &zoom_factor);
xml_read_print_info (ctxt, tree);
......
......@@ -15,8 +15,8 @@
#endif
#include "gnumeric.h"
#include "file.h"
#include "gnome-xml/tree.h"
#include "gnome-xml/xmlmemory.h"
#include <gnome-xml/tree.h>
#include <gnome-xml/xmlmemory.h>
typedef enum
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment