Ignore:
Timestamp:
11/30/2007 06:51:51 PM (19 years ago)
Author:
David Owen <dsowen@…>
branch-nick:
tui
revision id:
dsowen@fugue88.ws-20071130185151-em9s4upwi2dwsles
Message:

Allow no row to be selected when there are no data rows.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/simple-table.lisp

    r73 r75  
    5757    (flet ((notify ()
    5858             (funcall select-callback)
    59              (when (ensure-row-visible grid (1+ (selected-row model)))
    60                (funcall scroll-callback))))
     59             (let ((row (selected-row model)))
     60               (when (and row (ensure-row-visible grid (1+ row)))
     61                 (funcall scroll-callback)))))
    6162      (notify)
    6263      (loop
Note: See TracChangeset for help on using the changeset viewer.