mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-06-02 18:50:59 +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
1c792c4b66
commit
39aff9e704
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>
|
2011-12-29 Wolfgang Lux <wolfgang.lux@gmail.com>
|
||||||
|
|
||||||
* Source/NSTextView.m (-resizeSubviewsWithOldSize:): Adjust
|
* 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 */
|
/* will be -1 if there are no text containers */
|
||||||
*textContainer = num_textcontainers - 1;
|
*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;
|
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)
|
if (i == -1 || textcontainers[i].textContainer != textContainer)
|
||||||
return NSZeroRect;
|
return NSZeroRect;
|
||||||
|
|
||||||
if(cindex == 0)
|
|
||||||
{
|
|
||||||
r.origin.x += [textContainer lineFragmentPadding];
|
|
||||||
}
|
|
||||||
|
|
||||||
return r;
|
return r;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue