vcl/source/gdi/CommonSalLayout.cxx | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-)
New commits: commit cc038c471e96d766db404388b140364614898bf2 Author: Khaled Hosny <kha...@aliftype.com> AuthorDate: Tue Oct 4 15:30:40 2022 +0200 Commit: خالد حسني <kha...@aliftype.com> CommitDate: Tue Oct 4 23:14:44 2022 +0200 vcl: Fix thinko from recent commit From: commit 29de4d6e1afcf2ad79056e4ad4403c3d4bdda4a0 Author: Khaled Hosny <kha...@aliftype.com> Date: Mon Oct 3 21:53:38 2022 +0200 tdf#150665: Fix justifying spacing marks Change-Id: Ic312db0080526e66b918d6ca9edb09c6a669e449 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/140944 Tested-by: Jenkins Reviewed-by: خالد حسني <kha...@aliftype.com> diff --git a/vcl/source/gdi/CommonSalLayout.cxx b/vcl/source/gdi/CommonSalLayout.cxx index ca7e1cd42f55..fa023d496af8 100644 --- a/vcl/source/gdi/CommonSalLayout.cxx +++ b/vcl/source/gdi/CommonSalLayout.cxx @@ -529,12 +529,8 @@ bool GenericSalLayout::LayoutText(vcl::text::ImplLayoutArgs& rArgs, const SalLay // For our purposes, a mark glyph is part of cluster as well. hb_face_t* pHbFace = hb_font_get_face(pHbFont); - if (hb_ot_layout_get_glyph_class(pHbFace, nGlyphIndex) == HB_OT_LAYOUT_GLYPH_CLASS_MARK - && nCharPos != mnMinCharPos) - { - bClusterStart = false; + if (hb_ot_layout_get_glyph_class(pHbFace, nGlyphIndex) == HB_OT_LAYOUT_GLYPH_CLASS_MARK) bInCluster = true; - } GlyphItemFlags nGlyphFlags = GlyphItemFlags::NONE; if (bRightToLeft)