aboutsummaryrefslogtreecommitdiffstats
path: root/widgets/e-text
diff options
context:
space:
mode:
Diffstat (limited to 'widgets/e-text')
-rw-r--r--widgets/e-text/e-text.c9
1 files changed, 1 insertions, 8 deletions
diff --git a/widgets/e-text/e-text.c b/widgets/e-text/e-text.c
index 294795986f..3a4361b8fa 100644
--- a/widgets/e-text/e-text.c
+++ b/widgets/e-text/e-text.c
@@ -595,7 +595,6 @@ get_bounds (EText *text, double *px1, double *py1, double *px2, double *py2)
*px2 = text->cx + text->max_width;
*py2 = text->cy + text->height;
}
-
}
static void
@@ -1058,7 +1057,6 @@ e_text_set_arg (GtkObject *object, GtkArg *arg, guint arg_id)
else
text->needs_calc_line_widths = 1;
needs_reflow = 1;
- text->needs_recalc_bounds = 1;
break;
case ARG_CLIP_HEIGHT:
@@ -1185,7 +1183,6 @@ e_text_set_arg (GtkObject *object, GtkArg *arg, guint arg_id)
else
text->needs_calc_line_widths = 1;
needs_reflow = 1;
- text->needs_recalc_bounds = 1;
break;
default:
@@ -1382,6 +1379,7 @@ e_text_reflow (GnomeCanvasItem *item, int flags)
calc_height (text);
gnome_canvas_item_request_update(item);
text->needs_calc_height = 0;
+ text->needs_recalc_bounds = 1;
}
}
@@ -1862,11 +1860,6 @@ e_text_point (GnomeCanvasItem *item, double x, double y,
lines = text->lines;
-#if 0
- if ( lines )
- return 1;
-#endif
-
for (i = 0; i < text->num_lines; i++) {
/* Compute the coordinates of rectangle for the current line,
* clipping if appropriate.