]> git.lyx.org Git - lyx.git/blobdiff - src/toc.C
Fix bug 2485 and crash on middle mouse paste on math
[lyx.git] / src / toc.C
index 6a253472a33d54fddc74146004e7b157bd4cf7f6..7759f4cfaff4e024659701af0aacd72ffbf707e3 100644 (file)
--- a/src/toc.C
+++ b/src/toc.C
@@ -166,7 +166,7 @@ void asciiTocList(string const & type, Buffer const & buffer, ostream & os)
 }
 
 
-void Outline(OutlineOp mode, Buffer * buf, pit_type & pit)
+void outline(OutlineOp mode, Buffer * buf, pit_type & pit)
 {
        ParagraphList & pars = buf->text().paragraphs();
        ParagraphList::iterator bgn = pars.begin();
@@ -187,9 +187,9 @@ void Outline(OutlineOp mode, Buffer * buf, pit_type & pit)
                                ++p;
                        for (; p != end; ++p) {
                                toclevel = p->layout()->toclevel;
-                               if (toclevel != LyXLayout::NOT_IN_TOC 
+                               if (toclevel != LyXLayout::NOT_IN_TOC
                                    && toclevel <= thistoclevel) {
-                                       break;  
+                                       break;
                                }
                        }
                        ParagraphList::iterator q = s;
@@ -199,9 +199,9 @@ void Outline(OutlineOp mode, Buffer * buf, pit_type & pit)
                                break;
                        for (; q != bgn; --q) {
                                toclevel = q->layout()->toclevel;
-                               if (toclevel != LyXLayout::NOT_IN_TOC 
+                               if (toclevel != LyXLayout::NOT_IN_TOC
                                    && toclevel <= thistoclevel) {
-                                       break;  
+                                       break;
                                }
                        }
                        pit_type const newpit = std::distance(pars.begin(), q);
@@ -215,13 +215,13 @@ void Outline(OutlineOp mode, Buffer * buf, pit_type & pit)
                break;
                }
                case DOWN: {
-                          if (p != end)
+                          if (p != end)
                                ++p;
                        for (; p != end; ++p) {
                                toclevel = p->layout()->toclevel;
-                               if (toclevel != LyXLayout::NOT_IN_TOC 
+                               if (toclevel != LyXLayout::NOT_IN_TOC
                                    && toclevel <= thistoclevel) {
-                                       break;  
+                                       break;
                                }
                        }
                        ParagraphList::iterator q = p;
@@ -231,9 +231,9 @@ void Outline(OutlineOp mode, Buffer * buf, pit_type & pit)
                                break;
                        for (; q != end; ++q) {
                                toclevel = q->layout()->toclevel;
-                               if (toclevel != LyXLayout::NOT_IN_TOC 
+                               if (toclevel != LyXLayout::NOT_IN_TOC
                                    && toclevel <= thistoclevel) {
-                                       break;  
+                                       break;
                                }
                        }
                        pit_type const newpit = std::distance(pars.begin(), q);