Changes to correct bug#34919. NSTextView should now correctly show the padding set in the lineFragmentPadding attribute of NSTextContainer.

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@34222 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
gcasa 2011-11-28 02:37:58 +00:00
parent 29539acfe6
commit 46080b8730
4 changed files with 21 additions and 3 deletions

View file

@ -956,6 +956,11 @@ has the same y origin and height as the line frag rect it is in.
if (i == -1 || textcontainers[i].textContainer != textContainer)
return NSZeroRect;
if(cindex == 0)
{
r.origin.x += [textContainer lineFragmentPadding];
}
return r;
}