]> git.lyx.org Git - features.git/blobdiff - src/insets/InsetBox.cpp
Improve support for on screen length calculation
[features.git] / src / insets / InsetBox.cpp
index c96a7c9e7d11375d5a2fac0ec9537743a63fe0c1..de1c7fd5823a1d66b495637a0fca38691e0691b2 100644 (file)
@@ -171,7 +171,7 @@ void InsetBox::metrics(MetricsInfo & m, Dimension & dim) const
        // back up textwidth.
        int textwidth_backup = m.base.textwidth;
        if (hasFixedWidth())
-               m.base.textwidth = params_.width.inPixels(m.base.textwidth);
+               m.base.textwidth = params_.width.inPixels(m.base);
        InsetCollapsable::metrics(m, dim);
        // retore textwidth.
        m.base.textwidth = textwidth_backup;