mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-05-31 12:50:47 +00:00
Fix solaris problem
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@15251 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
b8d31e5f14
commit
a86c7674e5
2 changed files with 16 additions and 11 deletions
|
@ -608,16 +608,17 @@ static inline float defaultFontHeight ()
|
|||
[[aTextContainer textView] sizeToFit];
|
||||
[[aTextContainer textView] invalidateTextContainerOrigin];
|
||||
|
||||
{
|
||||
NSRange sr = [[aTextContainer textView] selectedRange];
|
||||
if (sr.length == 0
|
||||
&& aRange.location <= sr.location
|
||||
&& aRange.location + aRange.length >= sr.location)
|
||||
{
|
||||
[[aTextContainer textView]
|
||||
updateInsertionPointStateAndRestartTimer: YES];
|
||||
}
|
||||
}
|
||||
if ([aTextContainer textView])
|
||||
{
|
||||
NSRange sr = [[aTextContainer textView] selectedRange];
|
||||
if (sr.length == 0
|
||||
&& aRange.location <= sr.location
|
||||
&& aRange.location + aRange.length >= sr.location)
|
||||
{
|
||||
[[aTextContainer textView]
|
||||
updateInsertionPointStateAndRestartTimer: YES];
|
||||
}
|
||||
}
|
||||
|
||||
/* FIXME - it was reported that at this point lineRange is no longer
|
||||
* correct ... looks like sizeToFit / invalidateTextContainerOrigin
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue