org-table.el: Prevent an error from occurring

* lisp/org-table.el (org-table-justify-field-maybe): Fix bug.

Reported-by: Lester Longley <lester@ieee.org>
https://orgmode.org/list/CAA3095_oH2sH_a=nNeYEa=agZp7L2K8Vp2s-c7fN4M4Sro=stQ@mail.gmail.com
This commit is contained in:
Bastien 2020-09-05 15:18:51 +02:00
parent 3008fb45dc
commit 114d509829
1 changed files with 1 additions and 1 deletions

View File

@ -4407,7 +4407,7 @@ Optional argument NEW may specify text to replace the current field content."
((not new)
(concat (org-table--align-field field width align)
"|"))
((<= (org-string-width new) width)
((and width (<= (org-string-width new) width))
(concat (org-table--align-field new width align)
"|"))
(t