summaryrefslogtreecommitdiff
path: root/src/textprop.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/textprop.c')
-rw-r--r--src/textprop.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/textprop.c b/src/textprop.c
index 45023e88d..f33edc211 100644
--- a/src/textprop.c
+++ b/src/textprop.c
@@ -488,6 +488,11 @@ prop_add_common(
if (p == NULL)
goto theend;
+ if (start_col != 0)
+ {
+ emsg(_(e_can_only_use_text_align_when_column_is_zero));
+ goto theend;
+ }
if (STRCMP(p, "right") == 0)
flags |= TP_FLAG_ALIGN_RIGHT;
else if (STRCMP(p, "below") == 0)