[LyX/master] Fixup refs grouping

Juergen Spitzmueller spitz at lyx.org
Sun Dec 4 13:37:47 UTC 2022


commit abd69b06f4715b570ccc84390a0adf332cc92c4f
Author: Juergen Spitzmueller <spitz at lyx.org>
Date:   Sun Dec 4 15:32:47 2022 +0100

    Fixup refs grouping
    
    This has been broken at df59649a18f
---
 src/frontends/qt/GuiRef.cpp |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/frontends/qt/GuiRef.cpp b/src/frontends/qt/GuiRef.cpp
index ad4d710..0e76f03 100644
--- a/src/frontends/qt/GuiRef.cpp
+++ b/src/frontends/qt/GuiRef.cpp
@@ -487,8 +487,8 @@ void GuiRef::redoRefs()
 				       && (!ref.mid(1).contains(":") || ref.left(1).contains(":")))) {
 						QTreeWidgetItem * child =
 							new QTreeWidgetItem(item);
-						item->setText(0, refsAsStrings.at(j));
-						item->setData(0, Qt::UserRole, ref);
+						child->setText(0, refsAsStrings.at(j));
+						child->setData(0, Qt::UserRole, ref);
 						item->addChild(child);
 				}
 			}


More information about the lyx-cvs mailing list