Changeset 18 for trunk/Forms


Ignore:
Timestamp:
Nov 15, 2012, 3:34:26 PM (12 years ago)
Author:
chronos
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Forms/UFormMain.pas

    r14 r18  
    167167    Align := alClient;
    168168    Show;
    169     View := TDataViewList(DataViewLists[TTabSheet(Sender).Tag]);
     169    if TTabSheet(Sender).Tag < DataViewLists.Count then
     170      View := TDataViewList(DataViewLists[TTabSheet(Sender).Tag])
     171      else View := nil;
    170172    UpdateData;
    171173  end;
Note: See TracChangeset for help on using the changeset viewer.