Mercurial > dwindows
comparison mac/dw.m @ 683:7385011c3327
Fixed a minor issue causing crashes when right clicking on an empty container.
author | bsmith@81767d24-ef19-dc11-ae90-00e081727c95 |
---|---|
date | Wed, 02 Mar 2011 18:03:34 +0000 |
parents | de4aa126fb2f |
children | 014b02436c1f |
comparison
equal
deleted
inserted
replaced
682:de4aa126fb2f | 683:7385011c3327 |
---|---|
736 lastAddPoint--; | 736 lastAddPoint--; |
737 } | 737 } |
738 } | 738 } |
739 } | 739 } |
740 -(void)setRow:(int)row title:(void *)input { if(titles && input) { [titles replacePointerAtIndex:row withPointer:input]; } } | 740 -(void)setRow:(int)row title:(void *)input { if(titles && input) { [titles replacePointerAtIndex:row withPointer:input]; } } |
741 -(void *)getRowTitle:(int)row { if(titles) { return [titles pointerAtIndex:row]; } return NULL; } | 741 -(void *)getRowTitle:(int)row { if(titles && row > -1) { return [titles pointerAtIndex:row]; } return NULL; } |
742 -(id)getRow:(int)row and:(int)col { if(data) { int index = (int)(row * [tvcols count]) + col; return [data objectAtIndex:index]; } return nil; } | 742 -(id)getRow:(int)row and:(int)col { if(data) { int index = (int)(row * [tvcols count]) + col; return [data objectAtIndex:index]; } return nil; } |
743 -(int)cellType:(int)col { return [[types objectAtIndex:col] intValue]; } | 743 -(int)cellType:(int)col { return [[types objectAtIndex:col] intValue]; } |
744 -(int)lastAddPoint { return lastAddPoint; } | 744 -(int)lastAddPoint { return lastAddPoint; } |
745 -(int)lastQueryPoint { return lastQueryPoint; } | 745 -(int)lastQueryPoint { return lastQueryPoint; } |
746 -(void)setLastQueryPoint:(int)input { lastQueryPoint = input; } | 746 -(void)setLastQueryPoint:(int)input { lastQueryPoint = input; } |