changeset 1201:196cd8a8e6a8

Fixed dw_mle_set_cursor() should scroll to the point on Mac. Fixed a warning reported by clang in the test program. The events are occassionally getting errors on Mac and Unix... will need to debug.
author bsmith@81767d24-ef19-dc11-ae90-00e081727c95
date Fri, 30 Sep 2011 03:32:26 +0000
parents 88b3f27542b0
children 5c1a01c6384d
files dwtest.c mac/dw.m
diffstat 2 files changed, 1 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/dwtest.c	Fri Sep 30 03:19:16 2011 +0000
+++ b/dwtest.c	Fri Sep 30 03:32:26 2011 +0000
@@ -1375,8 +1375,6 @@
 void thread_add(void)
 {
     HWND tmpbox;
-    char buf[100];
-    int i;
 
     /* create a box to pack into the notebook page */
     tmpbox = dw_box_new(DW_VERT, 0);
--- a/mac/dw.m	Fri Sep 30 03:19:16 2011 +0000
+++ b/mac/dw.m	Fri Sep 30 03:32:26 2011 +0000
@@ -4476,6 +4476,7 @@
     if(point > length)
         point = (int)length;
     [mle setSelectedRange: NSMakeRange(point,point)];
+    [mle scrollRangeToVisible:NSMakeRange(point,point)];
 }
 
 /*