Ignore:
Timestamp:
12/17/08 18:45:22 (3 years ago)
Author:
dcollins
Message:

fixed a pointer validity check

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Code/main_window_event.pro

    r286 r287  
    161161                                ;extract value of the grid. 
    162162        dataValue = (*(*top_uvalue).b)[ dPos[0], dPos[1] ] 
    163         grid_number =(*(*top_uvalue).grid_map)[ dPos[0], dPos[1] ] 
     163        grid_number = -1 
     164        if ptr_valid((*top_uvalue).grid_map) EQ 1 then $ 
     165          grid_number =(*(*top_uvalue).grid_map)[ dPos[0], dPos[1] ] 
    164166                                ;print indicies and data value to  
    165167        ;curse_x_pos = widget_info(event.top, find_by_uname = "curse_x_pos") 
Note: See TracChangeset for help on using the changeset viewer.