2003-01-10 Padraig O'Briain <padraig.obriain@sun.com
authorpadraigo <padraigo@e2bd861d-eb25-0410-b326-f6ed22b6b98c>
Fri, 10 Jan 2003 14:45:53 +0000 (14:45 +0000)
committerpadraigo <padraigo@e2bd861d-eb25-0410-b326-f6ed22b6b98c>
Fri, 10 Jan 2003 14:45:53 +0000 (14:45 +0000)
* libspi/text.c:
Add includes to avoid compiler warnings on Solaris.
(impl_getRangeExtents): Bug fix.

git-svn-id: http://svn.gnome.org/svn/at-spi/trunk@391 e2bd861d-eb25-0410-b326-f6ed22b6b98c

ChangeLog
libspi/text.c

index e383dee..ae54f51 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2003-01-10  Padraig O'Briain <padraig.obriain@sun.com
+
+       * libspi/text.c:
+       Add includes to avoid compiler warnings on Solaris.
+       (impl_getRangeExtents): Bug fix.
+
 2002-12-17  Bill Haneman <bill.haneman@sun.com
 
         Fix for 100944, [API addition approved by Gman and murrayc].
index c8e6d1c..fbadd20 100644 (file)
 #include <config.h>
 #include <stdio.h>
 #include <stdlib.h>
+#include <string.h>
 #include <atk/atktext.h>
 #include <libspi/text.h>
+#include <libspi/spi-private.h>
 
 /* Our parent Gtk object type */
 #define PARENT_TYPE SPI_TYPE_BASE
@@ -465,8 +467,11 @@ impl_getRangeExtents(PortableServer_Servant servant,
 
   g_return_if_fail (text != NULL);
   
+  atk_text_get_character_extents (text, startOffset,
+                                 &bounds.x, &bounds.y, &bounds.w, &bounds.h,
+                                 (AtkCoordType) coordType);
   /* no equivalent ATK API yet, must do the hard way. :-( */
-  for (i = startOffset; i > endOffset; i++) 
+  for (i = startOffset + 1; i < endOffset; i++) 
     {
       atk_text_get_character_extents (text, i,
                                      &cbounds.x, &cbounds.y, &cbounds.w, &cbounds.h,