commit b73000a4955eea0f38daf1291975ac366e1f768d
Author: Juergen Spitzmueller <[email protected]>
Date: Thu Aug 22 08:17:33 2024 +0200
The InsetPrintNomenclature settings make no sense with nomentbl
---
src/insets/InsetNomencl.cpp | 6 ++++++
src/insets/InsetNomencl.h | 2 +-
2 files changed, 7 insertions(+), 1 deletion(-)
diff --git a/src/insets/InsetNomencl.cpp b/src/insets/InsetNomencl.cpp
index d694a166b7..484d731abe 100644
--- a/src/insets/InsetNomencl.cpp
+++ b/src/insets/InsetNomencl.cpp
@@ -507,4 +507,10 @@ string InsetPrintNomencl::contextMenuName() const
}
+bool InsetPrintNomencl::hasSettings() const
+{
+ return !contains(buffer().params().nomencl_opts, "nomentbl");
+}
+
+
} // namespace lyx
diff --git a/src/insets/InsetNomencl.h b/src/insets/InsetNomencl.h
index 47ff626e0b..47b9049269 100644
--- a/src/insets/InsetNomencl.h
+++ b/src/insets/InsetNomencl.h
@@ -91,7 +91,7 @@ public:
///
InsetCode lyxCode() const override;
///
- bool hasSettings() const override { return true; }
+ bool hasSettings() const override;
///
int rowFlags() const override { return Display; }
///
--
lyx-cvs mailing list
[email protected]
http://lists.lyx.org/mailman/listinfo/lyx-cvs