]> git.lyx.org Git - lyx.git/blobdiff - src/Text3.cpp
Keep dialog connected to cross-ref inset after Apply.
[lyx.git] / src / Text3.cpp
index 5e64801a6866d9b8f2f1915b9b4aea634dac5d6b..25bc7ec24986d095d6237d5b1ebbb5cfb84383e9 100644 (file)
@@ -1548,11 +1548,6 @@ void Text::dispatch(Cursor & cur, FuncRequest & cmd)
                cur.message(_("Cut"));
                break;
 
-       case LFUN_COPY:
-               copySelection(cur);
-               cur.message(_("Copy"));
-               break;
-
        case LFUN_SERVER_GET_XY:
                cur.message(from_utf8(
                        convert<string>(tm->cursorX(cur.top(), cur.boundary()))
@@ -1677,7 +1672,7 @@ void Text::dispatch(Cursor & cur, FuncRequest & cmd)
                        while (cur.pit() + offset <= cur.lastpit()) {
                                Paragraph cpar = pars_[cur.pit() + offset];
                                depth_type nextpar_depth = cpar.params().depth();
-                               if (cur_depth <= nextpar_depth) {
+                               if (cur_depth <= nextpar_depth && nextpar_depth > 0) {
                                        nextpars_depth.push_back(nextpar_depth);
                                        cur_depth = nextpar_depth;
                                        ++offset;
@@ -3284,7 +3279,6 @@ bool Text::getStatus(Cursor & cur, FuncRequest const & cmd,
                break;
 
        case LFUN_CUT:
-       case LFUN_COPY:
                enable = cur.selection();
                break;