зеркало из https://github.com/mozilla/gecko-dev.git
Fix for bug 94475 (if first whitespace in line in textarea is a tab it is changed to a new line). Patch by t_mutreja@yahoo.com, r=bratell@lysator.liu.se, sr=heikki.
This commit is contained in:
Родитель
d58afcac1a
Коммит
ecc891787d
|
@ -1963,7 +1963,7 @@ PRInt32 GetUnicharStringWidth(const PRUnichar* pwcs, PRInt32 n)
|
|||
|
||||
for (;*pwcs && n-- > 0; pwcs++)
|
||||
if ((w = GetUnicharWidth(*pwcs)) < 0)
|
||||
return -1;
|
||||
++width; // Taking 1 as the width of non-printable character, for bug# 94475.
|
||||
else
|
||||
width += w;
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче