]> git.lyx.org Git - lyx.git/blobdiff - src/BufferView.cpp
Fix caption numbering of child documents.
[lyx.git] / src / BufferView.cpp
index 4ce8ddb0a2f8e5cff581e2d28807e4ed868aec71..85ac21a8e34dc280191ebd2e1d8190c0f1c905a6 100644 (file)
@@ -1055,7 +1055,8 @@ bool BufferView::dispatch(FuncRequest const & cmd)
        }
 
        case LFUN_PARAGRAPH_GOTO: {
-               int const id = convert<int>(to_utf8(cmd.argument()));
+               int const id = convert<int>(cmd.getArg(0));
+               int const pos = convert<int>(cmd.getArg(1));
                int i = 0;
                for (Buffer * b = &buffer_; i == 0 || b != &buffer_;
                        b = theBufferList().next(b)) {
@@ -1072,6 +1073,7 @@ bool BufferView::dispatch(FuncRequest const & cmd)
 
                        if (b == &buffer_) {
                                // Set the cursor
+                               dit.pos() = pos;
                                setCursor(dit);
                                processUpdateFlags(Update::Force | Update::FitCursor);
                        } else {