]> git.lyx.org Git - features.git/commitdiff
simple two one-liner fixes to show all toc items.
authorAbdelrazak Younes <younes@lyx.org>
Sun, 23 Apr 2006 09:25:25 +0000 (09:25 +0000)
committerAbdelrazak Younes <younes@lyx.org>
Sun, 23 Apr 2006 09:25:25 +0000 (09:25 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13716 a592a061-630c-0410-9148-cb99ea01b6c8

src/frontends/qt4/TocModel.C

index a3a4ccb238c79f32b0f3de6dfb312205e9010e40..24e51a749b8225adaf9d3ee02595653330412a4e 100644 (file)
@@ -87,7 +87,7 @@ void TocModel::populate(TocBackend::Toc const & toc)
 
        while (iter != end) {
 
-               if (iter->depth() >= 1) {
+               if (iter->depth() >= 0) {
 
                        current_row = rowCount();
                        insertRows(current_row, 1);
@@ -136,9 +136,9 @@ void TocModel::populate(TocIterator & iter,
                        --iter;
                        return;
                }
-               if (iter->depth() > curdepth) {
-                       return;
-               }
+//             if (iter->depth() > curdepth) {
+//                     return;
+//             }
                
                current_row = rowCount(parent);
                insertRows(current_row, 1, parent);