]> git.lyx.org Git - lyx.git/blobdiff - src/Buffer.cpp
Remove some spacing above InsetColapsible when possible
[lyx.git] / src / Buffer.cpp
index c0abc95200860f4d39b917683249c4e69071481a..0dcd81ab5ebed7c6cc4b0c8a27caaa08a4bc5a68 100644 (file)
@@ -5347,9 +5347,9 @@ void Buffer::updateBuffer(ParIterator & parit, UpdateType utype) const
                changed |= parit->isChanged();
        }
 
-       // set change indicator for the inset
-       if (parit.inset().asInsetText())
-               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);
 }