gnumeric r16409 - in branches/gnumeric-1-8: . plugins/sylk test
- From: mortenw svn gnome org
- To: svn-commits-list gnome org
- Subject: gnumeric r16409 - in branches/gnumeric-1-8: . plugins/sylk test
- Date: Tue, 26 Feb 2008 14:43:00 +0000 (GMT)
Author: mortenw
Date: Tue Feb 26 14:43:00 2008
New Revision: 16409
URL: http://svn.gnome.org/viewvc/gnumeric?rev=16409&view=rev
Log:
2008-02-26 Morten Welinder <terra gnome org>
* sylk.c (sylk_rtd_c_parse): Do not duplicate all cell formats as
value formats.
Modified:
branches/gnumeric-1-8/NEWS
branches/gnumeric-1-8/plugins/sylk/ChangeLog
branches/gnumeric-1-8/plugins/sylk/sylk.c
branches/gnumeric-1-8/test/t5903-sylk.pl
Modified: branches/gnumeric-1-8/NEWS
==============================================================================
--- branches/gnumeric-1-8/NEWS (original)
+++ branches/gnumeric-1-8/NEWS Tue Feb 26 14:43:00 2008
@@ -26,6 +26,7 @@
* Make <control>KP_Subtract work as <control>minus. [#516358]
* Make <control>KP_Add work as <control>plus.
* Fix corrupted-applix-bugs. [#517778]
+ * Fix sylk importer's format handling.
--------------------------------------------------------------------------
Gnumeric 1.8.1
Modified: branches/gnumeric-1-8/plugins/sylk/sylk.c
==============================================================================
--- branches/gnumeric-1-8/plugins/sylk/sylk.c (original)
+++ branches/gnumeric-1-8/plugins/sylk/sylk.c Tue Feb 26 14:43:00 2008
@@ -205,7 +205,7 @@
len = strlen (str);
if (str[len-1] == '\"')
len--;
- return value_new_string_nocopy (g_strndup (str + 1, len));
+ return value_new_string_nocopy (g_strndup (str, len));
}
val = format_match_simple (str);
@@ -311,12 +311,6 @@
GnmCell *cell = sheet_cell_fetch (state->pp.sheet,
state->pp.eval.col, state->pp.eval.row);
- if (val != NULL) {
- GnmStyle const *style = sheet_style_get (state->pp.sheet,
- state->pp.eval.col, state->pp.eval.row);
- value_set_fmt (val, gnm_style_get_format (style));
- }
-
if (is_array) {
if (NULL != texpr)
gnm_cell_set_array_formula (state->pp.sheet,
Modified: branches/gnumeric-1-8/test/t5903-sylk.pl
==============================================================================
--- branches/gnumeric-1-8/test/t5903-sylk.pl (original)
+++ branches/gnumeric-1-8/test/t5903-sylk.pl Tue Feb 26 14:43:00 2008
@@ -9,5 +9,5 @@
my $mode = ((shift @ARGV) || "check");
&message ("Check the sylk importer.");
-&test_importer ("$samples/sylk/test.sylk", "bec1dd78ce89b81b0e1a357717dff8d288499f7b", $mode);
-&test_importer ("$samples/sylk/encoding.sylk", "f66dd1c83e281d073725ea7d8979431e61611d4b", $mode);
+&test_importer ("$samples/sylk/test.sylk", "72277f372f223e88bb743f0345004b057497d6d2", $mode);
+&test_importer ("$samples/sylk/encoding.sylk", "fbe5e755c071e6a2b22b4a37bca7f7c678b039a7", $mode);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]