]> git.lyx.org Git - features.git/commitdiff
* Fix bug 3202 (http://bugzilla.lyx.org/show_bug.cgi?id=3202)
authorAbdelrazak Younes <younes@lyx.org>
Mon, 5 Feb 2007 17:07:44 +0000 (17:07 +0000)
committerAbdelrazak Younes <younes@lyx.org>
Mon, 5 Feb 2007 17:07:44 +0000 (17:07 +0000)
* Augment a bit the space between nested insets.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17058 a592a061-630c-0410-9148-cb99ea01b6c8

src/insets/insetcollapsable.C

index 5c8738c589327b4486f0ac9ed663a43b89822c81..546921421b3d474e250b4ff1f030e5efae065a25 100644 (file)
@@ -152,7 +152,7 @@ Dimension InsetCollapsable::dimensionCollapsed() const
 bool InsetCollapsable::metrics(MetricsInfo & mi, Dimension & dim) const
 {
        autoOpen_ = mi.base.bv->cursor().isInside(this);
-       mi.base.textwidth -= 2 * TEXT_TO_INSET_OFFSET;
+       mi.base.textwidth -= (int) 1.5 * TEXT_TO_INSET_OFFSET;
 
        if (status() == Inlined) {
                InsetText::metrics(mi, dim);
@@ -178,8 +178,8 @@ bool InsetCollapsable::metrics(MetricsInfo & mi, Dimension & dim) const
        }
        dim.asc += TEXT_TO_INSET_OFFSET;
        dim.des += TEXT_TO_INSET_OFFSET;
-       dim.wid += (int) 1.25 * TEXT_TO_INSET_OFFSET;
-       mi.base.textwidth += 2 * TEXT_TO_INSET_OFFSET;
+       dim.wid += (int) 1.5 * TEXT_TO_INSET_OFFSET;
+       mi.base.textwidth += (int) 1.5 * TEXT_TO_INSET_OFFSET;
        bool const changed = dim_ != dim;
        dim_ = dim;
        return changed;