commit 31ec96e01ff0acca660cc91df1e3e6590d8aa649
Author: Juergen Spitzmueller <[email protected]>
Date: Mon Apr 1 17:59:56 2024 +0200
Fix context menu of InsetMathRef
---
src/mathed/InsetMathRef.cpp | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/src/mathed/InsetMathRef.cpp b/src/mathed/InsetMathRef.cpp
index b70b7eae5e..ad2e499167 100644
--- a/src/mathed/InsetMathRef.cpp
+++ b/src/mathed/InsetMathRef.cpp
@@ -164,6 +164,10 @@ bool InsetMathRef::getStatus(Cursor & cur, FuncRequest
const & cmd,
switch (cmd.action()) {
// we handle these
case LFUN_INSET_MODIFY:
+ if (cmd.getArg(0) == "changetype")
+ status.setOnOff(from_ascii(cmd.getArg(1)) ==
commandname());
+ status.setEnabled(true);
+ return true;
case LFUN_INSET_DIALOG_UPDATE:
case LFUN_INSET_SETTINGS:
case LFUN_MOUSE_RELEASE:
--
lyx-cvs mailing list
[email protected]
http://lists.lyx.org/mailman/listinfo/lyx-cvs