mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-04-22 17:52:42 +00:00
Get the insertion point rectangle right for character index 0.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@34364 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
0da1b1f034
commit
b046febc21
2 changed files with 13 additions and 6 deletions
|
@ -1,3 +1,9 @@
|
|||
2011-12-29 Wolfgang Lux <wolfgang.lux@gmail.com>
|
||||
|
||||
* Source/NSLayoutManager.m (-_insertionPointRectFor...,
|
||||
-insertionPintRect...): Get the insertion point rectangle right
|
||||
for character index 0.
|
||||
|
||||
2011-12-29 Wolfgang Lux <wolfgang.lux@gmail.com>
|
||||
|
||||
* Source/NSTextView.m (-resizeSubviewsWithOldSize:): Adjust
|
||||
|
|
|
@ -872,7 +872,13 @@ has the same y origin and height as the line frag rect it is in.
|
|||
|
||||
/* will be -1 if there are no text containers */
|
||||
*textContainer = num_textcontainers - 1;
|
||||
return NSMakeRect(0, 0, 1, [f boundingRectForFont].size.height);
|
||||
r = NSMakeRect(0, 0, 1, [f boundingRectForFont].size.height);
|
||||
if (num_textcontainers > 0)
|
||||
{
|
||||
tc = textcontainers + num_textcontainers - 1;
|
||||
r.origin.x += [tc->textContainer lineFragmentPadding];
|
||||
}
|
||||
return r;
|
||||
}
|
||||
fraction_through = 1.0;
|
||||
}
|
||||
|
@ -956,11 +962,6 @@ 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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue