]> git.lyx.org Git - features.git/commitdiff
MacOS compil fix
authorAbdelrazak Younes <younes@lyx.org>
Mon, 27 Aug 2007 13:12:51 +0000 (13:12 +0000)
committerAbdelrazak Younes <younes@lyx.org>
Mon, 27 Aug 2007 13:12:51 +0000 (13:12 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@19832 a592a061-630c-0410-9148-cb99ea01b6c8

src/Text3.cpp

index 68f822173acc64d934bf4364c4a4d951dd47ef4c..e8a78d9dee7f87715d19a689111a0b60611314ca 100644 (file)
@@ -1274,7 +1274,8 @@ void Text::dispatch(Cursor & cur, FuncRequest & cmd)
                // FIXME: This Text/Cursor dispatch handling is a mess!
                // We cannot use Cursor::dispatch here it needs access to up to
                // date metrics.
-               cur.text()->dispatch(cur, FuncRequest(LFUN_CAPTION_INSERT));
+               FuncRequest cmd_caption(LFUN_CAPTION_INSERT);
+               cur.text()->dispatch(cur, cmd_caption);
                cur.updateFlags(Update::Force);
                // FIXME: When leaving the Float (or Wrap) inset we should
                // delete any empty paragraph left above or below the