[gnumeric] STF: Fix GUI problem with missing columns.
- From: Morten Welinder <mortenw src gnome org>
- To: svn-commits-list gnome org
- Subject: [gnumeric] STF: Fix GUI problem with missing columns.
- Date: Thu, 11 Jun 2009 11:17:31 -0400 (EDT)
commit 20f80f0ed9be28f41c22154e72bb83cfadc16a7e
Author: Morten Welinder <terra gnome org>
Date: Thu Jun 11 11:17:01 2009 -0400
STF: Fix GUI problem with missing columns.
ChangeLog | 6 ++++++
NEWS | 1 +
src/stf-parse.c | 3 +++
3 files changed, 10 insertions(+), 0 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index 71f9afc..1af405f 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2009-06-11 Morten Welinder <terra gnome org>
+
+ * src/stf-parse.c (stf_parse_fixed_line): Make sure we have the
+ right number of columns, even if we need to add empty items.
+ Fixes #135523.
+
2009-06-10 Andreas J. Guelzow <aguelzow pyrshep ca>
for Almer S. Tigelaar
diff --git a/NEWS b/NEWS
index f455615..7cf9d26 100644
--- a/NEWS
+++ b/NEWS
@@ -36,6 +36,7 @@ Morten:
* Fix GCD. [#585271]
* Change x^y^z into x^(y^z) to indicate parsing.
* Parse x^y^z as (x^y)^z from ODF files. [#585277]
+ * Fix text import problem. [#135523]
--------------------------------------------------------------------------
Gnumeric 1.9.8
diff --git a/src/stf-parse.c b/src/stf-parse.c
index a94bc17..340595f 100644
--- a/src/stf-parse.c
+++ b/src/stf-parse.c
@@ -777,6 +777,9 @@ stf_parse_fixed_line (Source_t *src, StfParseOptions_t *parseoptions)
src->splitpos++;
}
+ while (line->len < parseoptions->splitpositions->len)
+ g_ptr_array_add (line, g_strdup (""));
+
return line;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]