commit d4cfa5204c3963d5ef99fd9ac263566bc69df21c
Author: Enrico Forestieri <for...@lyx.org>
Date:   Sun Jan 2 18:49:44 2022 +0100

    Fix bug #12447
    
    Due to a thinko at 1fe75ae7 the code was not using the correct index.
---
 src/frontends/qt/GuiDelimiter.cpp |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/src/frontends/qt/GuiDelimiter.cpp 
b/src/frontends/qt/GuiDelimiter.cpp
index 3110db7..479db87 100644
--- a/src/frontends/qt/GuiDelimiter.cpp
+++ b/src/frontends/qt/GuiDelimiter.cpp
@@ -262,8 +262,9 @@ GuiDelimiter::GuiDelimiter(GuiView & lv)
 
        for (int i = 0; i != leftLW->count(); ++i) {
                MathSymbol const & ms = 
mathSymbol(getDelimiterName(leftLW->item(i)));
-               QListWidgetItem * rwi = 
left_list_items_[doMatch(ms.unicode)]->clone();
-               right_list_items_[ms.unicode] = rwi;
+               char_type const rdelim = doMatch(ms.unicode);
+               QListWidgetItem * rwi = left_list_items_[rdelim]->clone();
+               right_list_items_[mathSymbol(texName(rdelim)).unicode] = rwi;
                rightLW->addItem(rwi);
        }
 
-- 
lyx-cvs mailing list
lyx-cvs@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-cvs

Reply via email to