commit 1692f7ee5d732f74e553f327c143c91efabd2e12
Author: Juergen Spitzmueller <[email protected]>
Date: Thu Jul 24 19:23:04 2025 +0200
Adapt InsetPrintNomencl::xhtml() to new (collapsible) nomencl inset
---
src/insets/InsetNomencl.cpp | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
diff --git a/src/insets/InsetNomencl.cpp b/src/insets/InsetNomencl.cpp
index 5db3c0ac87..6cb4c50a7c 100644
--- a/src/insets/InsetNomencl.cpp
+++ b/src/insets/InsetNomencl.cpp
@@ -222,15 +222,15 @@ docstring InsetPrintNomencl::xhtml(XMLStream &,
OutputParams const & op) const
Inset const * inset = par.getInset(dit.top().pos());
if (!inset)
return docstring();
- InsetCommand const * ic = inset->asInsetCommand();
- if (!ic)
+ InsetNomencl const * in = inset->asInsetNomencl();
+ if (!in)
return docstring();
// FIXME We need a link to the paragraph here, so we
// need some kind of struct.
- docstring const symbol = ic->getParam("symbol");
- docstring const desc = ic->getParam("description");
- docstring const prefix = ic->getParam("prefix");
+ docstring const symbol = in->getSymbol();
+ docstring const desc = in->getDescription();;
+ docstring const prefix = in->getPrefix();;
docstring const sortas = prefix.empty() ? symbol : prefix;
entries[sortas] = NomenclEntry(symbol, desc, &par);
--
lyx-cvs mailing list
[email protected]
https://lists.lyx.org/mailman/listinfo/lyx-cvs