aboutsummaryrefslogtreecommitdiffstats
path: root/widgets
diff options
context:
space:
mode:
Diffstat (limited to 'widgets')
-rw-r--r--widgets/e-text/e-text.c8
-rw-r--r--widgets/text/e-text.c8
2 files changed, 14 insertions, 2 deletions
diff --git a/widgets/e-text/e-text.c b/widgets/e-text/e-text.c
index 591f6451cf..69c94f9432 100644
--- a/widgets/e-text/e-text.c
+++ b/widgets/e-text/e-text.c
@@ -1580,12 +1580,15 @@ get_line_xpos_item_relative (EText *text, struct line *line)
break;
default:
+ if (text->draw_borders)
+ x += BORDER_INDENT;
+
/* For GTK_JUSTIFY_LEFT, we don't have to do anything. We do not support
* GTK_JUSTIFY_FILL, yet.
*/
break;
}
-
+
return x;
}
@@ -2187,6 +2190,9 @@ _get_position_from_xy (EText *text, gint x, gint y)
y += text->yofs_edit;
+ if (text->draw_borders)
+ ypos += BORDER_INDENT;
+
j = 0;
while (y > ypos) {
ypos += text->font->ascent + text->font->descent;
diff --git a/widgets/text/e-text.c b/widgets/text/e-text.c
index 591f6451cf..69c94f9432 100644
--- a/widgets/text/e-text.c
+++ b/widgets/text/e-text.c
@@ -1580,12 +1580,15 @@ get_line_xpos_item_relative (EText *text, struct line *line)
break;
default:
+ if (text->draw_borders)
+ x += BORDER_INDENT;
+
/* For GTK_JUSTIFY_LEFT, we don't have to do anything. We do not support
* GTK_JUSTIFY_FILL, yet.
*/
break;
}
-
+
return x;
}
@@ -2187,6 +2190,9 @@ _get_position_from_xy (EText *text, gint x, gint y)
y += text->yofs_edit;
+ if (text->draw_borders)
+ ypos += BORDER_INDENT;
+
j = 0;
while (y > ypos) {
ypos += text->font->ascent + text->font->descent;