Commit 74a35f80 authored by Andreas J. Guelzow's avatar Andreas J. Guelzow Committed by Andreas J. Guelzow

do not post an error on user cancel.

2003-07-09  Andreas J. Guelzow  <aguelzow@taliesin.ca>

	* src/stf.c (stf_text_to_columns): do not post an error on user cancel.
parent 9fa9ed14
2003-06-27 Andreas J. Guelzow <aguelzow@taliesin.ca>
2003-07-09 Andreas J. Guelzow <aguelzow@taliesin.ca>
* src/stf.c (stf_text_to_columns): do not post an error on user cancel.
2003-07-09 Andreas J. Guelzow <aguelzow@taliesin.ca>
* src/stf.c (stf_read_workbook): do not post a cancelled "error"
* src/workbook-view.c (wb_view_new_from_input): if the workbook
......
2003-06-27 Andreas J. Guelzow <aguelzow@taliesin.ca>
2003-07-09 Andreas J. Guelzow <aguelzow@taliesin.ca>
* src/stf.c (stf_text_to_columns): do not post an error on user cancel.
2003-07-09 Andreas J. Guelzow <aguelzow@taliesin.ca>
* src/stf.c (stf_read_workbook): do not post a cancelled "error"
* src/workbook-view.c (wb_view_new_from_input): if the workbook
......
2003-06-27 Andreas J. Guelzow <aguelzow@taliesin.ca>
2003-07-09 Andreas J. Guelzow <aguelzow@taliesin.ca>
* src/stf.c (stf_text_to_columns): do not post an error on user cancel.
2003-07-09 Andreas J. Guelzow <aguelzow@taliesin.ca>
* src/stf.c (stf_read_workbook): do not post a cancelled "error"
* src/workbook-view.c (wb_view_new_from_input): if the workbook
......
......@@ -294,17 +294,20 @@ stf_text_to_columns (WorkbookControl *wbc, CommandContext *cc)
NULL, FALSE, NULL, FALSE,
_("Text to Columns"), data, data_len);
if (dialogresult == NULL ||
!stf_store_results (dialogresult, target_sheet,
if (dialogresult != NULL) {
if (!stf_store_results (dialogresult, target_sheet,
target.start.col, target.start.row)) {
gnumeric_error_read (COMMAND_CONTEXT (cc),
_("Error while trying to parse data into sheet"));
_("Error while trying to "
"parse data into sheet"));
} else {
sheet_flag_status_update_range (target_sheet, &target);
sheet_queue_respan (target_sheet, target.start.row, target.end.row);
sheet_queue_respan (target_sheet, target.start.row,
target.end.row);
workbook_recalc (target_sheet->workbook);
sheet_redraw_all (target_sheet, FALSE);
}
}
g_object_unref (G_OBJECT (buf));
if (dialogresult != NULL)
......
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