aboutsummaryrefslogtreecommitdiffstats
path: root/widgets/text
diff options
context:
space:
mode:
Diffstat (limited to 'widgets/text')
-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 45d43ac523..93fd9d0120 100644
--- a/widgets/text/e-text.c
+++ b/widgets/text/e-text.c
@@ -3255,6 +3255,13 @@ e_text_command(ETextEventProcessor *tep, ETextEventProcessorCommand *command, gp
break;
}
+ /* it's possible to get here without ever having been realized
+ by our canvas (if the e-text started completely obscured.)
+ so let's create our layout object if we don't already have
+ one. */
+ if (!text->layout)
+ create_layout (text);
+
if (scroll && !text->button_down) {
/* XXX do we really need the @trailing logic here? if
we don't we can scrap the loop and just use