Commit efd376c0 authored by Jody Goldberg's avatar Jody Goldberg Committed by Jody Goldberg

Fix bugs 10705 10775 11159 Morten's autofill UMR Han's crash on sheet

Fix bugs
    10705
    10775
    11159
    Morten's autofill UMR
    Han's crash on sheet deletion.

2000-05-17  Jody Goldberg <jgoldberg@home.com>

	* src/sheet.c (sheet_get_extent) : Disable the use of
	  sheet_style_get_extent until it is more intelligent.

	* configure.in : Produce a Using OAF message in the non-bonobo case
	  too.  Limit xml to version 1.x for now.

	* src/cell.c (cell_set_text_and_value) : Set the entered_text BEFORE
	  the value so that cells with format = text render correctly.
parent e7d830cc
2000-05-17 Jody Goldberg <jgoldberg@home.com>
* src/sheet.c (sheet_get_extent) : Disable the use of
sheet_style_get_extent until it is more intelligent.
* configure.in : Produce a Using OAF message in the non-bonobo case
too. Limit xml to version 1.x for now.
* src/cell.c (cell_set_text_and_value) : Set the entered_text BEFORE
the value so that cells with format = text render correctly.
2000-05-16 Jody Goldberg <jgoldberg@home.com>
* src/sheet-autofill.c (autofill_cell) : Init the RewriteInfo::type.
* src/clipboard.c (paste_cell) : Cells need acurate locations before
relocation. This is not pretty, but it is functional.
2000-05-16 Karl Eichwalder <ke@suse.de>
* NEWS (Translations): Add gl.
......
2000-05-17 Jody Goldberg <jgoldberg@home.com>
* src/sheet.c (sheet_get_extent) : Disable the use of
sheet_style_get_extent until it is more intelligent.
* configure.in : Produce a Using OAF message in the non-bonobo case
too. Limit xml to version 1.x for now.
* src/cell.c (cell_set_text_and_value) : Set the entered_text BEFORE
the value so that cells with format = text render correctly.
2000-05-16 Jody Goldberg <jgoldberg@home.com>
* src/sheet-autofill.c (autofill_cell) : Init the RewriteInfo::type.
* src/clipboard.c (paste_cell) : Cells need acurate locations before
relocation. This is not pretty, but it is functional.
2000-05-16 Karl Eichwalder <ke@suse.de>
* NEWS (Translations): Add gl.
......
2000-05-17 Jody Goldberg <jgoldberg@home.com>
* src/sheet.c (sheet_get_extent) : Disable the use of
sheet_style_get_extent until it is more intelligent.
* configure.in : Produce a Using OAF message in the non-bonobo case
too. Limit xml to version 1.x for now.
* src/cell.c (cell_set_text_and_value) : Set the entered_text BEFORE
the value so that cells with format = text render correctly.
2000-05-16 Jody Goldberg <jgoldberg@home.com>
* src/sheet-autofill.c (autofill_cell) : Init the RewriteInfo::type.
* src/clipboard.c (paste_cell) : Cells need acurate locations before
relocation. This is not pretty, but it is functional.
2000-05-16 Karl Eichwalder <ke@suse.de>
* NEWS (Translations): Add gl.
......
2000-05-17 Jody Goldberg <jgoldberg@home.com>
* src/sheet.c (sheet_get_extent) : Disable the use of
sheet_style_get_extent until it is more intelligent.
* configure.in : Produce a Using OAF message in the non-bonobo case
too. Limit xml to version 1.x for now.
* src/cell.c (cell_set_text_and_value) : Set the entered_text BEFORE
the value so that cells with format = text render correctly.
2000-05-16 Jody Goldberg <jgoldberg@home.com>
* src/sheet-autofill.c (autofill_cell) : Init the RewriteInfo::type.
* src/clipboard.c (paste_cell) : Cells need acurate locations before
relocation. This is not pretty, but it is functional.
2000-05-16 Karl Eichwalder <ke@suse.de>
* NEWS (Translations): Add gl.
......
2000-05-17 Jody Goldberg <jgoldberg@home.com>
* src/sheet.c (sheet_get_extent) : Disable the use of
sheet_style_get_extent until it is more intelligent.
* configure.in : Produce a Using OAF message in the non-bonobo case
too. Limit xml to version 1.x for now.
* src/cell.c (cell_set_text_and_value) : Set the entered_text BEFORE
the value so that cells with format = text render correctly.
2000-05-16 Jody Goldberg <jgoldberg@home.com>
* src/sheet-autofill.c (autofill_cell) : Init the RewriteInfo::type.
* src/clipboard.c (paste_cell) : Cells need acurate locations before
relocation. This is not pretty, but it is functional.
2000-05-16 Karl Eichwalder <ke@suse.de>
* NEWS (Translations): Add gl.
......
2000-05-17 Jody Goldberg <jgoldberg@home.com>
* src/sheet.c (sheet_get_extent) : Disable the use of
sheet_style_get_extent until it is more intelligent.
* configure.in : Produce a Using OAF message in the non-bonobo case
too. Limit xml to version 1.x for now.
* src/cell.c (cell_set_text_and_value) : Set the entered_text BEFORE
the value so that cells with format = text render correctly.
2000-05-16 Jody Goldberg <jgoldberg@home.com>
* src/sheet-autofill.c (autofill_cell) : Init the RewriteInfo::type.
* src/clipboard.c (paste_cell) : Cells need acurate locations before
relocation. This is not pretty, but it is functional.
2000-05-16 Karl Eichwalder <ke@suse.de>
* NEWS (Translations): Add gl.
......
2000-05-17 Jody Goldberg <jgoldberg@home.com>
* src/sheet.c (sheet_get_extent) : Disable the use of
sheet_style_get_extent until it is more intelligent.
* configure.in : Produce a Using OAF message in the non-bonobo case
too. Limit xml to version 1.x for now.
* src/cell.c (cell_set_text_and_value) : Set the entered_text BEFORE
the value so that cells with format = text render correctly.
2000-05-16 Jody Goldberg <jgoldberg@home.com>
* src/sheet-autofill.c (autofill_cell) : Init the RewriteInfo::type.
* src/clipboard.c (paste_cell) : Cells need acurate locations before
relocation. This is not pretty, but it is functional.
2000-05-16 Karl Eichwalder <ke@suse.de>
* NEWS (Translations): Add gl.
......
......@@ -79,13 +79,17 @@ AC_SUBST(GNOMEGNORBA_LIBS)
dnl ******************************
dnl gnome-xml checking
dnl ******************************
AC_MSG_CHECKING(for GnomeXML libraries >= 1.8.5)
AC_MSG_CHECKING(for GnomeXML libraries 1.8.5 <= version < 2.0.0)
if xml-config --libs print > /dev/null 2>&1; then
vers=`xml-config --version | sed -e "s/libxml //" | awk 'BEGIN { FS = "."; } { printf "%d", ($1 * 1000 + $2) * 1000 + $3;}'`
if test "$vers" -ge 1008005; then
AC_MSG_RESULT(found)
if test "$vers" -lt 2000000; then
AC_MSG_RESULT(found)
else
AC_MSG_ERROR(This version of Gnumeric does not support GnomeXml 2.x.x yet.)
fi
else
AC_MSG_ERROR(You need at least GnomeXML 1.8.5 for this version of Gnumeric)
AC_MSG_ERROR(You need at least GnomeXML 1.8.5 for this version of Gnumeric.)
fi
else
AC_MSG_ERROR(Did not find GnomeXML installed)
......@@ -160,6 +164,7 @@ dnl ******************************
try_bonobo=true
bonobo=
bonobo_msg=no
using_oaf=no
bonobo_suffix=
have_bonobo=false
AC_ARG_WITH(bonobo,
......@@ -199,8 +204,6 @@ if $try_bonobo; then
if ( gnome-config --libs bonobo | grep oaf ) > /dev/null 2>&1 ; then
using_oaf="yes"
AC_DEFINE(USING_OAF)
else
using_oaf="no"
fi
AC_MSG_RESULT("$using_oaf")
......
......@@ -336,9 +336,9 @@ cell_set_text_and_value (Cell *cell, String *text,
*/
if (optional_format)
cell->format = style_format_new (optional_format);
cell->u.entered_text = string_ref (text);
cell->value = v;
cell_render_value (cell);
cell->u.entered_text = string_ref (text);
}
/*
......
......@@ -79,6 +79,11 @@ paste_cell (Sheet *dest_sheet, Cell *new_cell,
if (cell_has_expr (new_cell)) {
if (paste_flags & PASTE_FORMULAS) {
/* Cell can not be linked in yet, but it needs an accurate location */
new_cell->sheet = dest_sheet;
new_cell->col_info = sheet_col_fetch (dest_sheet, target_col);
new_cell->row_info = sheet_row_fetch (dest_sheet, target_row);
cell_relocate (new_cell, TRUE);
cell_content_changed (new_cell);
} else
......
......@@ -527,6 +527,7 @@ autofill_cell (Cell *cell, int idx, FillItem *fi)
rinfo = &rwinfo.u.relocate;
/* FIXME : Find out how to handle this */
rwinfo.type = EXPR_REWRITE_RELOCATE;
rinfo->target_sheet = rinfo->origin_sheet = 0;
rinfo->col_offset = rinfo->row_offset = 0;
rinfo->origin.start.col = rinfo->origin.end.col = cell->col_info->pos;
......
......@@ -883,7 +883,16 @@ sheet_get_extent (Sheet const *sheet)
if (r.end.row < 0)
r.end.row = 0;
#if 0
/*
* Disable until this is more intelligent.
* if a style is applied to rows 0->10 the default
* style gets split and a style that ranges from 11->MAX
* This screws printing and several of the export
* routines.
*/
sheet_style_get_extent (&r, sheet);
#endif
/*
* Print can't handle stuff outside these walls.
......
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