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

@ -1,5 +1,9 @@
2002-12-04 Adam Fedor <fedor@gnu.org>
* Source/GSSimpleLayoutManager.m ([GSSimpleLayoutManager
-textStorage:edited:range:changeInLength:invalidatedRange:]): Make
sure view exists before trying to get range (Solaris limitation).
* Source/NSPrintOperation.m: Update for change in GSSetLocale.
2002-12-04 Adam Fedor <fedor@gnu.org>
@ -1795,7 +1799,7 @@ Fri May 10 11:24:38 2002 Nicola Pero <n.pero@mi.flashnet.it>
2002-05-01 Adam Fedor <fedor@gnu.org>
* Source/NSView.m (-resizeWithOldSuperviewSize:): Check object
before getting struct. (Solaris limintation).
before getting struct. (Solaris limitation).
2002-04-30 Adam Fedor <fedor@gnu.org>

View file

@ -608,6 +608,7 @@ static inline float defaultFontHeight ()
[[aTextContainer textView] sizeToFit];
[[aTextContainer textView] invalidateTextContainerOrigin];
if ([aTextContainer textView])
{
NSRange sr = [[aTextContainer textView] selectedRange];
if (sr.length == 0