]> git.lyx.org Git - features.git/blobdiff - src/insets/InsetText.cpp
Allow removing words from the personal dictionary, that weren't previously added.
[features.git] / src / insets / InsetText.cpp
index 12e5996cd4aa4ad6b4de2c3651bb6eb5a72e919b..4cecec8cd7ec31019ca85795a67b609ffd5363dd 100644 (file)
@@ -1040,6 +1040,10 @@ bool InsetText::insetAllowed(InsetCode code) const
        case QUOTE_CODE:
        case COUNTER_CODE:
                return true;
+       // These are only allowed in index insets
+       case INDEXMACRO_CODE:
+       case INDEXMACRO_SORTKEY_CODE:
+               return false;
        default:
                return !isPassThru();
        }