]> git.lyx.org Git - lyx.git/blobdiff - src/Buffer.cpp
Replace the hardcoded TEXT_TO_INSET_OFFSET by tunable values
[lyx.git] / src / Buffer.cpp
index eabb2181b9ffffe687c9fd938c61ba0e447c1db9..0dcd81ab5ebed7c6cc4b0c8a27caaa08a4bc5a68 100644 (file)
@@ -5347,8 +5347,9 @@ void Buffer::updateBuffer(ParIterator & parit, UpdateType utype) const
                changed |= parit->isChanged();
        }
 
-       // set change indicator for the inset
-       parit.inset().asInsetText()->isChanged(changed);
+       // set change indicator for the inset (or the cell that the iterator
+       // points to, if applicable).
+       parit.text()->inset().isChanged(changed);
 }