changeset 801:5d8e4ecb7820

Think we need to ignore the last add point when the pointer argument is NULL.
author bsmith@81767d24-ef19-dc11-ae90-00e081727c95
date Wed, 23 Mar 2011 19:50:03 +0000
parents e5a0a1a3ee03
children 676d46b31a11
files mac/dw.m
diffstat 1 files changed, 7 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/mac/dw.m	Wed Mar 23 19:43:04 2011 +0000
+++ b/mac/dw.m	Wed Mar 23 19:50:03 2011 +0000
@@ -4556,7 +4556,13 @@
     DWContainer *cont = handle;
     id object = nil;
     int type = [cont cellType:column];
-    int lastadd = [cont lastAddPoint];
+    int lastadd = 0;
+    
+    /* If pointer is NULL we are getting a change request instead of set */
+    if(pointer)
+    {
+        lastadd = [cont lastAddPoint];
+    }
 
     if(!data)
     {