From 0777c0574e0f6a45046c5e7ff72526e71c6b860e Mon Sep 17 00:00:00 2001 From: Fred Kiefer Date: Sat, 19 Sep 2009 15:28:33 +0000 Subject: [PATCH] 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 --- ChangeLog | 5 +++++ Source/GSHorizontalTypesetter.m | 4 ++++ 2 files changed, 9 insertions(+) diff --git a/ChangeLog b/ChangeLog index 2317a8172..afffdf5aa 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2009-09-19 Fred Kiefer + + * Source/GSHorizontalTypesetter.m (-_cacheMoveTo:): Use default + paragraph style when none is set. + 2009-09-19 Fred Kiefer * Headers/Additions/GNUstepGUI/GSTextConverter.h, diff --git a/Source/GSHorizontalTypesetter.m b/Source/GSHorizontalTypesetter.m index f1a5dd40c..f2f9c0787 100644 --- a/Source/GSHorizontalTypesetter.m +++ b/Source/GSHorizontalTypesetter.m @@ -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];