]> git.lyx.org Git - features.git/commitdiff
text3.cpp: adapt a possible fix to current code
authorUwe Stöhr <uwestoehr@lyx.org>
Sun, 15 Feb 2015 00:04:41 +0000 (01:04 +0100)
committerUwe Stöhr <uwestoehr@lyx.org>
Sun, 15 Feb 2015 00:04:41 +0000 (01:04 +0100)
src/Text3.cpp

index fc8846ea5bb755cfc0d94b72da79aef9d2044c99..e2602f031baeea50143aaec14f0e1fc9df5a63da 100644 (file)
@@ -1101,13 +1101,13 @@ void Text::dispatch(Cursor & cur, FuncRequest & cmd)
                        /*
                        Paragraph & par = pars_[cur.pit()];
                        if (inset->lyxCode() == LABEL_CODE
-                               && !par.layout().counter.empty() {
+                               && !par.layout().counter.empty()) {
                                // Go to the end of the paragraph
                                // Warning: Because of Change-Tracking, the last
                                // position is 'size()' and not 'size()-1':
                                cur.pos() = par.size();
                                // Insert a new paragraph
-                               FuncRequest fr(LFUN_BREAK_PARAGRAPH);
+                               FuncRequest fr(LFUN_PARAGRAPH_BREAK);
                                dispatch(cur, fr);
                        }
                        */