aboutsummaryrefslogtreecommitdiffstats
path: root/widgets
diff options
context:
space:
mode:
authorChristopher James Lahey <clahey@ximian.com>2001-07-03 12:43:42 +0800
committerChris Lahey <clahey@src.gnome.org>2001-07-03 12:43:42 +0800
commit5847ef85662adc9158efa2780ff251b572a63dc1 (patch)
treed15380cf8a5caec9114560d3368af3e515edbffa /widgets
parent642d32d63f226cd1ba049a9d979132e1a1cef94d (diff)
downloadgsoc2013-evolution-5847ef85662adc9158efa2780ff251b572a63dc1.tar
gsoc2013-evolution-5847ef85662adc9158efa2780ff251b572a63dc1.tar.gz
gsoc2013-evolution-5847ef85662adc9158efa2780ff251b572a63dc1.tar.bz2
gsoc2013-evolution-5847ef85662adc9158efa2780ff251b572a63dc1.tar.lz
gsoc2013-evolution-5847ef85662adc9158efa2780ff251b572a63dc1.tar.xz
gsoc2013-evolution-5847ef85662adc9158efa2780ff251b572a63dc1.tar.zst
gsoc2013-evolution-5847ef85662adc9158efa2780ff251b572a63dc1.zip
If lines is NULL here split into lines and just return that the point is
2001-07-03 Christopher James Lahey <clahey@ximian.com> * 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
Diffstat (limited to 'widgets')
-rw-r--r--widgets/text/e-text.c7
1 files changed, 7 insertions, 0 deletions
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);