]> git.lyx.org Git - lyx.git/blobdiff - src/TextMetrics.cpp
Cmake build: Creating a define for a header file found
[lyx.git] / src / TextMetrics.cpp
index 44e81d03715a1ab4596ffdfabe686b42cf8eb620..8b0f3a900b9eda9c05d9029aa7365579805056f7 100644 (file)
@@ -1102,15 +1102,6 @@ Dimension TextMetrics::rowHeight(pit_type const pit, pos_type const first,
                if (par.params().startOfAppendix())
                        maxasc += int(3 * dh);
 
-               // This is special code for the chapter, since the label of this
-               // layout is printed in an extra row
-               if (layout.counter == "chapter"
-                   && !par.params().labelString().empty()) {
-                       labeladdon = int(labelfont_metrics.maxHeight()
-                                    * layout.spacing.getValue()
-                                    * text_->spacing(par));
-               }
-
                // special code for the top label
                if (layout.labelIsAbove()
                    && (!layout.isParagraphGroup() || text_->isFirstInSequence(pit))