mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-05-30 05:50:37 +00:00
Use default paragraph style in text layout when none is set.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@28714 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
3b51ebf3fe
commit
0777c0574e
2 changed files with 9 additions and 0 deletions
|
@ -1,3 +1,8 @@
|
|||
2009-09-19 Fred Kiefer <FredKiefer@gmx.de>
|
||||
|
||||
* Source/GSHorizontalTypesetter.m (-_cacheMoveTo:): Use default
|
||||
paragraph style when none is set.
|
||||
|
||||
2009-09-19 Fred Kiefer <FredKiefer@gmx.de>
|
||||
|
||||
* Headers/Additions/GNUstepGUI/GSTextConverter.h,
|
||||
|
|
|
@ -188,6 +188,10 @@ the last time or not, we wouldn't need to clear the cache every time */
|
|||
atIndex: i
|
||||
longestEffectiveRange: ¶graphRange
|
||||
inRange: paragraphRange];
|
||||
if (curParagraphStyle == nil)
|
||||
{
|
||||
curParagraphStyle = [NSParagraphStyle defaultParagraphStyle];
|
||||
}
|
||||
|
||||
curFont = [curLayoutManager effectiveFontForGlyphAtIndex: glyph
|
||||
range: &fontRange];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue