Upstream: Fixed line overwrite in documents when using rtl language.
http://devel.frontaccounting.com/git/?p=fa-stable.git;a=commit;h=ab0766f571a268f5051805c3ba44713c43854904