Commit 33f0f441 authored by Morten Welinder's avatar Morten Welinder Committed by Morten Welinder

Always set ->text_dir.

2005-05-16  Morten Welinder  <terra@gnome.org>

	* ms-excel-read.c: Always set ->text_dir.
parent f401f6d5
2005-05-16 Morten Welinder <terra@gnome.org>
* ms-excel-read.c: Always set ->text_dir.
2005-05-14 Jean Brefort <jean.brefort@normalesup.org>
* ms-chart.c: (chart_write_AI): fixed tests, (chart_write_axis_sets ):
......
......@@ -2072,14 +2072,14 @@ excel_read_XF (BiffQuery *q, ExcelWorkbook *ewb, MsBiffVersion ver)
subdata = (data & 0x00C0) >> 10;
switch (subdata) {
default: g_warning ("Unknown text direction %d.", subdata);
/* Fall through. */
case 0: xf->text_dir = GNM_TEXT_DIR_CONTEXT; break;
case 1: xf->text_dir = GNM_TEXT_DIR_LTR; break;
case 2: xf->text_dir = GNM_TEXT_DIR_RTL; break;
default:
fprintf (stderr,"Unknown text direction %d\n", subdata);
break;
}
} else {
xf->text_dir = GNM_TEXT_DIR_CONTEXT;
xf->shrink_to_fit = FALSE;
xf->indent = 0;
}
......
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