diff options
Diffstat (limited to 'atk/atktext.c')
-rw-r--r-- | atk/atktext.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/atk/atktext.c b/atk/atktext.c index 23034c7..8f2e498 100644 --- a/atk/atktext.c +++ b/atk/atktext.c @@ -1062,6 +1062,9 @@ atk_text_set_caret_offset (AtkText *text, * * Get the bounding box for text within the specified range. * + * If the extents can not be obtained (e.g. or missing support), the rectangle + * fields are set to -1. + * * Since: 1.3 **/ void @@ -1081,6 +1084,13 @@ atk_text_get_range_extents (AtkText *text, if (iface->get_range_extents) (*(iface->get_range_extents)) (text, start_offset, end_offset, coord_type, rect); + else + { + rect->x = -1; + rect->y = -1; + rect->width = -1; + rect->height = -1; + } } /** |