]> git.lyx.org Git - lyx.git/commitdiff
Text3.cpp: comment by Vincent
authorUwe Stöhr <uwestoehr@web.de>
Fri, 24 Oct 2008 23:09:27 +0000 (23:09 +0000)
committerUwe Stöhr <uwestoehr@web.de>
Fri, 24 Oct 2008 23:09:27 +0000 (23:09 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@27092 a592a061-630c-0410-9148-cb99ea01b6c8

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();