diff options
author | Christopher James Lahey <clahey@helixcode.com> | 2000-03-14 00:57:15 +0800 |
---|---|---|
committer | Chris Lahey <clahey@src.gnome.org> | 2000-03-14 00:57:15 +0800 |
commit | 2e19c1630acc12875081163e20ddd9538dafd741 (patch) | |
tree | f643f601a25df5dc40821365b864d6d00e450c0e /widgets | |
parent | 2a3293368b73945c2b55f160745cb2d98b4bcee6 (diff) | |
download | gsoc2013-evolution-2e19c1630acc12875081163e20ddd9538dafd741.tar gsoc2013-evolution-2e19c1630acc12875081163e20ddd9538dafd741.tar.gz gsoc2013-evolution-2e19c1630acc12875081163e20ddd9538dafd741.tar.bz2 gsoc2013-evolution-2e19c1630acc12875081163e20ddd9538dafd741.tar.lz gsoc2013-evolution-2e19c1630acc12875081163e20ddd9538dafd741.tar.xz gsoc2013-evolution-2e19c1630acc12875081163e20ddd9538dafd741.tar.zst gsoc2013-evolution-2e19c1630acc12875081163e20ddd9538dafd741.zip |
Fixed a crashing bug when you cancel an edit.
2000-03-13 Christopher James Lahey <clahey@helixcode.com>
* e-cell-text.c: Fixed a crashing bug when you cancel an edit.
svn path=/trunk/; revision=2113
Diffstat (limited to 'widgets')
-rw-r--r-- | widgets/e-table/ChangeLog | 4 | ||||
-rw-r--r-- | widgets/e-table/e-cell-text.c | 3 | ||||
-rw-r--r-- | widgets/table/e-cell-text.c | 3 |
3 files changed, 10 insertions, 0 deletions
diff --git a/widgets/e-table/ChangeLog b/widgets/e-table/ChangeLog index 24500392b0..9c979e5ea7 100644 --- a/widgets/e-table/ChangeLog +++ b/widgets/e-table/ChangeLog @@ -1,3 +1,7 @@ +2000-03-13 Christopher James Lahey <clahey@helixcode.com> + + * e-cell-text.c: Fixed a crashing bug when you cancel an edit. + 2000-03-12 Christopher James Lahey <clahey@helixcode.com> * e-table.c: Made this use an ECanvas. Fixed a bug where diff --git a/widgets/e-table/e-cell-text.c b/widgets/e-table/e-cell-text.c index 422b27ff93..91ead8d798 100644 --- a/widgets/e-table/e-cell-text.c +++ b/widgets/e-table/e-cell-text.c @@ -234,6 +234,9 @@ ect_stop_editing (ECellTextView *text_view) CellEdit *edit = text_view->edit; int row, view_col; + if ( !edit ) + return; + row = edit->cell.row; view_col = edit->cell.view_col; diff --git a/widgets/table/e-cell-text.c b/widgets/table/e-cell-text.c index 422b27ff93..91ead8d798 100644 --- a/widgets/table/e-cell-text.c +++ b/widgets/table/e-cell-text.c @@ -234,6 +234,9 @@ ect_stop_editing (ECellTextView *text_view) CellEdit *edit = text_view->edit; int row, view_col; + if ( !edit ) + return; + row = edit->cell.row; view_col = edit->cell.view_col; |