vcl: Fix thinko from recent commit
From:
commit 29de4d6e1afcf2ad79056e4ad4403c3d4bdda4a0
Author: Khaled Hosny <khaled@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: خالد حسني <khaled@aliftype.com>
diff --git a/vcl/source/gdi/CommonSalLayout.cxx b/vcl/source/gdi/CommonSalLayout.cxx
index ca7e1cd..fa023d4 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)