mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-04-23 20:01:11 +00:00
Make sure view exists before trying to get range (Solaris limitation).
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@15259 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
f5018416a5
commit
709f0a2379
2 changed files with 14 additions and 5 deletions
|
@ -1,3 +1,9 @@
|
|||
2002-12-05 Adam Fedor <fedor@gnu.org>
|
||||
|
||||
* Source/GSSimpleLayoutManager.m ([GSSimpleLayoutManager
|
||||
-setNeedsDisplayForLineRange:inTextContainer:]): Make sure view
|
||||
exists before trying to get range (Solaris limitation).
|
||||
|
||||
2002-12-04 Adam Fedor <fedor@gnu.org>
|
||||
|
||||
* Source/GSSimpleLayoutManager.m ([GSSimpleLayoutManager
|
||||
|
|
|
@ -933,11 +933,14 @@ forStartOfGlyphRange: (NSRange)glyphRange
|
|||
- 1] lineFragmentRect]);
|
||||
|
||||
displayRect.size.width = width;
|
||||
displayRect.origin.x +=
|
||||
[[aTextContainer textView] textContainerInset].width;
|
||||
displayRect.origin.y +=
|
||||
[[aTextContainer textView] textContainerInset].height;
|
||||
[[aTextContainer textView] setNeedsDisplayInRect: displayRect];
|
||||
if ([aTextContainer textView])
|
||||
{
|
||||
displayRect.origin.x +=
|
||||
[[aTextContainer textView] textContainerInset].width;
|
||||
displayRect.origin.y +=
|
||||
[[aTextContainer textView] textContainerInset].height;
|
||||
[[aTextContainer textView] setNeedsDisplayInRect: displayRect];
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue