diff options
Diffstat (limited to 'vcl/win/source/gdi/winlayout.cxx')
-rw-r--r-- | vcl/win/source/gdi/winlayout.cxx | 15 |
1 files changed, 1 insertions, 14 deletions
diff --git a/vcl/win/source/gdi/winlayout.cxx b/vcl/win/source/gdi/winlayout.cxx index cad232b55810..b3562eec9a63 100644 --- a/vcl/win/source/gdi/winlayout.cxx +++ b/vcl/win/source/gdi/winlayout.cxx @@ -2368,11 +2368,6 @@ GraphiteWinLayout::~GraphiteWinLayout() bool GraphiteWinLayout::LayoutText( ImplLayoutArgs & args) { - if (args.mnMinCharPos >= args.mnEndCharPos) - { - maImpl.clear(); - return true; - } HFONT hUnRotatedFont = 0; if (args.mnOrientation) { @@ -2386,15 +2381,7 @@ bool GraphiteWinLayout::LayoutText( ImplLayoutArgs & args) } WinLayout::AdjustLayout(args); maImpl.SetFontScale(WinLayout::mfFontScale); - gr_segment * pSegment = maImpl.CreateSegment(args); - bool bSucceeded = false; - if (pSegment) - { - // replace the DC on the font within the segment - // create glyph vectors - bSucceeded = maImpl.LayoutGlyphs(args, pSegment); - gr_seg_destroy(pSegment); - } + bool bSucceeded = maImpl.LayoutText(args); if (args.mnOrientation) { // restore the rotated font |