From b935e4d54f47841d48ceb88223a9a5cb36872e56 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stephan=20A=C3=9Fmus?= Date: Thu, 20 Feb 2014 17:55:45 +0100 Subject: [PATCH] HaikuDepot, text stuff: Removed work around. * The extra glyph or white space offset no longer needs to be removed from the first glyph. --- src/apps/haiku-depot/textview/ParagraphLayout.cpp | 6 ------ 1 file changed, 6 deletions(-) diff --git a/src/apps/haiku-depot/textview/ParagraphLayout.cpp b/src/apps/haiku-depot/textview/ParagraphLayout.cpp index 86f30c2599..eebc22fa01 100644 --- a/src/apps/haiku-depot/textview/ParagraphLayout.cpp +++ b/src/apps/haiku-depot/textview/ParagraphLayout.cpp @@ -942,12 +942,6 @@ ParagraphLayout::_DrawSpan(BView* view, BPoint offset, delta.nonspace = line.extraGlyphSpacing; delta.space = line.extraWhiteSpacing; - // TODO: Fix in app_server: First glyph should not be shifted by delta. - if (text[0] == ' ') - offset.x -= delta.space; - else - offset.x -= delta.nonspace; - view->DrawString(span.Text(), offset, &delta); }