commit 28370f3a7b323c61cfe973a7b2b3a4175dddd022
Author: Udi Fogiel <[email protected]>
Date:   Sun Jul 5 22:20:38 2026 +0300

    avoid colorbox patch with babel-hebrew
    
    not needed with latest babel-hebrew version.
---
 src/insets/InsetBox.cpp | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/src/insets/InsetBox.cpp b/src/insets/InsetBox.cpp
index e1a1b0aa05..d084f67089 100644
--- a/src/insets/InsetBox.cpp
+++ b/src/insets/InsetBox.cpp
@@ -349,7 +349,9 @@ void InsetBox::latex(otexstream & os, OutputParams const & 
runparams) const
        string maybeEndL;
        bool needEndL = false;
        if (!runparams.isFullUnicode()
-           && runparams.local_font && runparams.local_font->isRightToLeft()) {
+           && runparams.local_font && runparams.local_font->isRightToLeft()
+           && (runparams.local_font->language()->lang() != "hebrew"
+               || !LaTeXFeatures::isAvailableAtLeastFrom("babel-hebrew", 2026, 
2, 16))) {
                maybeBeginL = "\\beginL";
                maybeEndL = "\\endL";
        }
-- 
lyx-cvs mailing list
[email protected]
https://lists.lyx.org/mailman/listinfo/lyx-cvs

Reply via email to