+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].
#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
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,