aboutsummaryrefslogtreecommitdiffstats
path: root/widgets/table/e-table-item.c
diff options
context:
space:
mode:
authorChristopher James Lahey <clahey@ximian.com>2002-06-05 23:47:23 +0800
committerChris Lahey <clahey@src.gnome.org>2002-06-05 23:47:23 +0800
commit882e28269d85c84086b4fee1938f3cb11c82ce6f (patch)
treef877266b12335d7afe5768953adb182e983789d9 /widgets/table/e-table-item.c
parentee96e3762905713b1785d24f6de278608060d6c3 (diff)
downloadgsoc2013-evolution-882e28269d85c84086b4fee1938f3cb11c82ce6f.tar
gsoc2013-evolution-882e28269d85c84086b4fee1938f3cb11c82ce6f.tar.gz
gsoc2013-evolution-882e28269d85c84086b4fee1938f3cb11c82ce6f.tar.bz2
gsoc2013-evolution-882e28269d85c84086b4fee1938f3cb11c82ce6f.tar.lz
gsoc2013-evolution-882e28269d85c84086b4fee1938f3cb11c82ce6f.tar.xz
gsoc2013-evolution-882e28269d85c84086b4fee1938f3cb11c82ce6f.tar.zst
gsoc2013-evolution-882e28269d85c84086b4fee1938f3cb11c82ce6f.zip
Added debugging printfs.
2002-06-05 Christopher James Lahey <clahey@ximian.com> * e-table-field-chooser-item.c: Added debugging printfs. * e-table-header-item.c: Added debugging printfs. (ethi_drag_motion): Don't subtract widget->allocation.* here. It seems that this value is affected by whether the table is using a click to add field. Not sure why. * e-table-item.c (eti_realize): Check for NULL selection here. svn path=/trunk/; revision=17118
Diffstat (limited to 'widgets/table/e-table-item.c')
-rw-r--r--widgets/table/e-table-item.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/widgets/table/e-table-item.c b/widgets/table/e-table-item.c
index 86f55aeab2..a6697544fa 100644
--- a/widgets/table/e-table-item.c
+++ b/widgets/table/e-table-item.c
@@ -1665,8 +1665,9 @@ eti_realize (GnomeCanvasItem *item)
free_height_cache(eti);
- if (item->canvas->focused_item == NULL) {
+ if (item->canvas->focused_item == NULL && eti->selection) {
int row;
+
row = e_selection_model_cursor_row (E_SELECTION_MODEL (eti->selection));
row = model_to_view_row(eti, row);
if (row != -1) {