Commit 9b5b5ac2 authored by Miguel de Icaza's avatar Miguel de Icaza Committed by Arturo Espinosa
Browse files

Do not complain if there was no target cell entered.

1998-09-23  Miguel de Icaza  <miguel@nuclecu.unam.mx>

	* src/dialog-goto-cell.c (dialog_goto_cell): Do not complain if
	there was no target cell entered.

	* src/expr.c (eval_expr): Division of integers results in a
	float.
parent 8a52fa07
1998-09-23 Miguel de Icaza <miguel@nuclecu.unam.mx>
* src/dialog-goto-cell.c (dialog_goto_cell): Do not complain if
there was no target cell entered.
* src/expr.c (eval_expr): Division of integers results in a
float.
* src/workbook.c: Added shortcuts to the File menu.
* src/item-cursor.c (item_cursor_autofill_event): Do not allow
......
1998-09-23 Miguel de Icaza <miguel@nuclecu.unam.mx>
* src/dialog-goto-cell.c (dialog_goto_cell): Do not complain if
there was no target cell entered.
* src/expr.c (eval_expr): Division of integers results in a
float.
* src/workbook.c: Added shortcuts to the File menu.
* src/item-cursor.c (item_cursor_autofill_event): Do not allow
......
1998-09-23 Miguel de Icaza <miguel@nuclecu.unam.mx>
* src/dialog-goto-cell.c (dialog_goto_cell): Do not complain if
there was no target cell entered.
* src/expr.c (eval_expr): Division of integers results in a
float.
* src/workbook.c: Added shortcuts to the File menu.
* src/item-cursor.c (item_cursor_autofill_event): Do not allow
......
1998-09-23 Miguel de Icaza <miguel@nuclecu.unam.mx>
* src/dialog-goto-cell.c (dialog_goto_cell): Do not complain if
there was no target cell entered.
* src/expr.c (eval_expr): Division of integers results in a
float.
* src/workbook.c: Added shortcuts to the File menu.
* src/item-cursor.c (item_cursor_autofill_event): Do not allow
......
......@@ -80,13 +80,15 @@ dialog_goto_cell (Workbook *wb)
text = gtk_entry_get_text (GTK_ENTRY (entry));
if (workbook_parse_and_jump (wb, text)){
char *texts [1];
texts [0] = text;
gtk_clist_append (GTK_CLIST (clist), texts);
if (*text){
if (workbook_parse_and_jump (wb, text)){
char *texts [1];
texts [0] = text;
gtk_clist_append (GTK_CLIST (clist), texts);
}
}
gnome_dialog_close (GNOME_DIALOG (dialog));
}
......@@ -80,13 +80,15 @@ dialog_goto_cell (Workbook *wb)
text = gtk_entry_get_text (GTK_ENTRY (entry));
if (workbook_parse_and_jump (wb, text)){
char *texts [1];
texts [0] = text;
gtk_clist_append (GTK_CLIST (clist), texts);
if (*text){
if (workbook_parse_and_jump (wb, text)){
char *texts [1];
texts [0] = text;
gtk_clist_append (GTK_CLIST (clist), texts);
}
}
gnome_dialog_close (GNOME_DIALOG (dialog));
}
......@@ -705,8 +705,8 @@ eval_expr (void *asheet, ExprTree *tree, int eval_col, int eval_row, char **erro
*error_string = _("Division by zero");
return NULL;
}
res->v.v_int = a->v.v_int / b->v.v_int;
res->type = VALUE_FLOAT;
res->v.v_float = a->v.v_int / (float_t)b->v.v_int;
break;
case OP_EXP:
......
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