]> git.lyx.org Git - lyx.git/blobdiff - src/insets/insetbox.C
more cleanup:
[lyx.git] / src / insets / insetbox.C
index aa11692071db935852e307f2cf137275787e4ad2..e5be700ae43f1b8afa81e8e50e1c9fa91cb4ee8f 100644 (file)
@@ -149,7 +149,6 @@ void InsetBox::setButtonLabel()
        BoxType btype = boxtranslator().find(params_.type);
 
        docstring label;
-       // FIXME UNICODE
        label += _("Box");
        label += " (";
        if (btype == Frameless) {
@@ -158,7 +157,7 @@ void InsetBox::setButtonLabel()
                else
                        label += _("Minipage");
        } else
-               // FXIME unicode
+               // FIXME UNICODE
                label += from_utf8(boxtranslator_loc().find(btype));
        label += ")";
 
@@ -170,13 +169,15 @@ void InsetBox::setButtonLabel()
 }
 
 
-void InsetBox::metrics(MetricsInfo & m, Dimension & dim) const
+bool InsetBox::metrics(MetricsInfo & m, Dimension & dim) const
 {
        MetricsInfo mi = m;
        if (params_.inner_box || params_.special != "width")
                mi.base.textwidth = params_.width.inPixels(m.base.textwidth);
        InsetCollapsable::metrics(mi, dim);
+       bool const changed = dim_ != dim;
        dim_ = dim;
+       return changed;
 }