--- gal/a11y/e-table/gal-a11y-e-cell-text.c.orig Wed Feb 9 23:01:26 2005 +++ gal/a11y/e-table/gal-a11y-e-cell-text.c Wed Feb 9 23:02:02 2005 @@ -152,11 +152,12 @@ GalA11yECell *gaec = GAL_A11Y_E_CELL (text); gunichar ret_val; gchar *at_offset; + gchar *full_text; if (!ect_check (text)) return -1; - gchar *full_text = e_cell_text_get_text_by_view (gaec->cell_view, gaec->model_col, gaec->row); + full_text = e_cell_text_get_text_by_view (gaec->cell_view, gaec->model_col, gaec->row); at_offset = g_utf8_offset_to_pointer (full_text, offset); ret_val = g_utf8_get_char_validated (at_offset, -1); g_free (full_text); @@ -236,11 +237,12 @@ { GalA11yECell *gaec = GAL_A11Y_E_CELL (text); gint ret_val; + gchar *full_text; if (!ect_check (text)) return -1; - gchar *full_text = e_cell_text_get_text_by_view (gaec->cell_view, gaec->model_col, gaec->row); + full_text = e_cell_text_get_text_by_view (gaec->cell_view, gaec->model_col, gaec->row); ret_val = g_utf8_strlen (full_text, -1); g_free (full_text);