]> git.lyx.org Git - lyx.git/blobdiff - src/BufferView2.C
Support for \begin{math}
[lyx.git] / src / BufferView2.C
index af1326aa034e21b578feebe2ef833a29d5deb40d..7bdda14a64331c48a76ad5896b6e4f6514771b29 100644 (file)
@@ -437,6 +437,7 @@ bool BufferView::lockInset(UpdatableInset * inset)
                                par->inset_iterator_end();
                        for (; it != end; ++it) {
                                if ((*it) == inset) {
+                                       text->setCursorIntern(this, par, it.getPos());
                                        theLockingInset(inset);
                                        return true;
                                }
@@ -456,7 +457,7 @@ bool BufferView::lockInset(UpdatableInset * inset)
 
 void BufferView::showLockedInsetCursor(int x, int y, int asc, int desc)
 {
-       if (available() && theLockingInset()) {
+       if (available() && theLockingInset() && !theLockingInset()->nodraw()) {
                LyXCursor cursor = text->cursor;
                Inset * locking_inset = theLockingInset()->getLockingInset();