Issue #2286403 by martin107: Inconsistent use of magic number when constants DIRECTION_LTR and DIRECTION_RTL already defined.