]> git.lyx.org Git - lyx.git/blobdiff - src/Text3.cpp
Cmake build: Creating a define for a header file found
[lyx.git] / src / Text3.cpp
index 2893e080f92800e49360e3af0bf3b8078cacb8b3..fad451c7288007d612f4c4bca479e7e5b328a7b8 100644 (file)
@@ -1097,7 +1097,7 @@ void Text::dispatch(Cursor & cur, FuncRequest & cmd)
                        /*
                        Paragraph & par = pars_[cur.pit()];
                        if (inset->lyxCode() == LABEL_CODE
-                               && par.layout().labeltype == LABEL_COUNTER) {
+                               && !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':