Commit 96abd06b authored by Andreas J. Guelzow's avatar Andreas J. Guelzow
Browse files

2021-01-06 Andreas J. Guelzow <aguelzow@pyrshep.ca>

	* openoffice-read.c (odf_apply_ooo_table_config): we can only handle splitmode == 2.
	Do not confuse any others with frozen panes.
parent 0e236c39
Gnumeric 1.12.49
Andreas:
* Do not try to turn all of LibreOffice's SplitModes into frozen
panes [file of #557]
Jean:
* Fix graph size issue when the graph is in its own sheet. [#516]
......
2021-01-06 Andreas J. Guelzow <aguelzow@pyrshep.ca>
* openoffice-read.c (odf_apply_ooo_table_config): we can only handle splitmode == 2.
Do not confuse any others with frozen panes.
2020-08-30 Morten Welinder <terra@gnome.org>
* openoffice-write.c (odf_store_this_named_style): Handle the same
......
......@@ -11725,13 +11725,21 @@ odf_apply_ooo_table_config (char const *key, GValue *val, OOParseState *state)
if (item != NULL && G_VALUE_HOLDS(item, G_TYPE_INT))
hsm = g_value_get_int (item);
/* We are not implementing SplitMode == 1 */
if (hsm != 2) hsm = 0;
if (vsm != 2) vsm = 0;
if (vsm > 0 || hsm > 0) {
item = g_hash_table_lookup (hash, "VerticalSplitPosition");
if (item != NULL && G_VALUE_HOLDS(item, G_TYPE_INT))
vsp = g_value_get_int (item);
item = g_hash_table_lookup (hash, "HorizontalSplitPosition");
if (item != NULL && G_VALUE_HOLDS(item, G_TYPE_INT))
hsp = g_value_get_int (item);
if (vsm > 0) {
item = g_hash_table_lookup (hash, "VerticalSplitPosition");
if (item != NULL && G_VALUE_HOLDS(item, G_TYPE_INT))
vsp = g_value_get_int (item);
} else vsp = 0;
if (hsm > 0) {
item = g_hash_table_lookup (hash, "HorizontalSplitPosition");
if (item != NULL && G_VALUE_HOLDS(item, G_TYPE_INT))
hsp = g_value_get_int (item);
} else hsp = 0;
if (vsp > 0 || hsp > 0) {
GnmCellPos fpos = {0, 0};
pos.col = hsp;
......
Supports Markdown
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