]> git.lyx.org Git - features.git/commitdiff
Revert r35339 for now following Enrico criticisms. I'll come back to it later.
authorJean-Marc Lasgouttes <lasgouttes@lyx.org>
Mon, 13 Sep 2010 13:16:49 +0000 (13:16 +0000)
committerJean-Marc Lasgouttes <lasgouttes@lyx.org>
Mon, 13 Sep 2010 13:16:49 +0000 (13:16 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35356 a592a061-630c-0410-9148-cb99ea01b6c8

src/TextMetrics.cpp

index b9e55a34f806e2ff0ce9027731a452b5ecc0c3da..48dbdd7a69578ee98d6c09b26001e3d0a5843dfc 100644 (file)
@@ -1053,6 +1053,10 @@ Dimension TextMetrics::rowHeight(pit_type const pit, pos_type const first,
                maxdesc = max(maxdesc, maxfontmetrics.maxDescent());
        }
 
+       // This is nicer with box insets:
+       ++maxasc;
+       ++maxdesc;
+
        ParagraphList const & pars = text_->paragraphs();
        Inset const & inset = text_->inset();