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:
fedor 2002-12-05 04:50:30 +00:00
parent b8d31e5f14
commit a86c7674e5
2 changed files with 16 additions and 11 deletions

View file

@ -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