]> git.lyx.org Git - lyx.git/blobdiff - src/Text3.cpp
More general fix for part of 5403.
[lyx.git] / src / Text3.cpp
index a5fda1f957f6a692b6afd93301aa11e8603d564d..2d7b15659c361cfd78ae45b82a29883c6b95a287 100644 (file)
@@ -1414,6 +1414,9 @@ void Text::dispatch(Cursor & cur, FuncRequest & cmd)
                doInsertInset(cur, this, cmd, true, true);
                cur.posForward();
 
+               // If some text is moved into the inset, doInsertInset 
+               // puts the cursor outside the inset. To insert the
+               // caption we put it back into the inset.
                if (content)
                        cur.backwardPos();