From a1394434e7cec9ebdf005a7288d2816aad01ee1f Mon Sep 17 00:00:00 2001
From: Alexander Golubev <fatzer2@gmail.com>
Date: Fri, 10 Apr 2026 19:57:40 +0300
Subject: Fix an assert violation when displaying Lao

When displaying Lao text tqt was complaining about assert violation:
 ASSERT: "item >= &textEngine.items[0]" in kernel/tqrichtext.cpp (3883)

This is because for Lao script was assigned a Thai callback.

The Qt4 eventually as well removed use of Thai AttributeFunction for
Lao.[1]

[1]: https://github.com/Fat-Zer/qt4-historical/blob/7ce566a7b2496c436fd69effc566292cf577daa1/src/gui/text/qscriptengine.cpp#L5231

Signed-off-by: Alexander Golubev <fatzer2@gmail.com>
---
 src/kernel/tqscriptengine_x11.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/kernel/tqscriptengine_x11.cpp b/src/kernel/tqscriptengine_x11.cpp
index c54f6d6b1..ced11e93f 100644
--- a/src/kernel/tqscriptengine_x11.cpp
+++ b/src/kernel/tqscriptengine_x11.cpp
@@ -3689,7 +3689,7 @@ const q_scriptEngine scriptEngines[] = {
 	// Thai,
     { basic_shape, thai_attributes },
 	// Lao,
-    { basic_shape, thai_attributes },
+    { basic_shape, 0 },
 	// Tibetan,
     { tibetan_shape, tibetan_attributes },
 	// Myanmar,
-- 
cgit v1.2.3

