]> git.lyx.org Git - features.git/blobdiff - src/insets/insettabular.C
This fixes a real bug in InsetText where it was possible to delete the
[features.git] / src / insets / insettabular.C
index 2fda1bfe29ac462a5a42d18c1f5abe5a619a7bfd..64bdd4d84d76f7cb82929847cab68dc71118be90 100644 (file)
@@ -632,9 +632,10 @@ unsigned int InsetTabular::insetInInsetY()
 }
 
 
-UpdatableInset * InsetTabular::getLockingInset()
+UpdatableInset * InsetTabular::getLockingInset() const
 {
-       return the_locking_inset ? the_locking_inset->getLockingInset() : this;
+       return the_locking_inset ? the_locking_inset->getLockingInset() :
+               const_cast<InsetTabular *>(this);
 }