From 5847ef85662adc9158efa2780ff251b572a63dc1 Mon Sep 17 00:00:00 2001 From: Christopher James Lahey Date: Tue, 3 Jul 2001 04:43:42 +0000 Subject: If lines is NULL here split into lines and just return that the point is 2001-07-03 Christopher James Lahey * gal/e-text/e-text.c (e_text_point): If lines is NULL here split into lines and just return that the point is outside this text object. svn path=/trunk/; revision=10730 --- widgets/text/e-text.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/widgets/text/e-text.c b/widgets/text/e-text.c index f605a65a34..2b26e07a72 100644 --- a/widgets/text/e-text.c +++ b/widgets/text/e-text.c @@ -2304,6 +2304,12 @@ e_text_point (GnomeCanvasItem *item, double x, double y, lines = text->lines; + if ( !lines ) { + text->needs_split_into_lines = 1; + e_canvas_item_request_reflow (item); + return 1; + } + if (text->fill_clip_rectangle) { double clip_width; double clip_height; @@ -3387,6 +3393,7 @@ _get_position(EText *text, ETextEventProcessorCommand *command) default: new_pos = text->selection_end; + break; } new_pos = e_text_model_validate_position (text->model, new_pos); -- cgit v1.2.3