]> git.lyx.org Git - lyx.git/blobdiff - src/insets/insetvspace.C
* src/LyXAction.C: mark goto-clear-bookmark as working without buffer
[lyx.git] / src / insets / insetvspace.C
index c03dd4d67141854d641738ba3bec93318ef58130..afb221aff28cc25295def2fab9f87d1cf48b3e06 100644 (file)
@@ -107,8 +107,7 @@ void InsetVSpace::write(Buffer const &, ostream & os) const
 docstring const InsetVSpace::label() const
 {
        static docstring const label = _("Vertical Space");
-       // FIXME UNICODE
-       return label + " (" + from_utf8(space_.asGUIName()) + ')';
+       return label + " (" + space_.asGUIName() + ')';
 }
 
 
@@ -117,7 +116,7 @@ int const arrow_size = 4;
 }
 
 
-void InsetVSpace::metrics(MetricsInfo & mi, Dimension & dim) const
+bool InsetVSpace::metrics(MetricsInfo & mi, Dimension & dim) const
 {
        int height = 3 * arrow_size;
        if (space_.length().len().value() >= 0.0)
@@ -137,7 +136,9 @@ void InsetVSpace::metrics(MetricsInfo & mi, Dimension & dim) const
        dim.asc = height / 2 + (a - d) / 2; // align cursor with the
        dim.des = height - dim.asc;         // label text
        dim.wid = ADD_TO_VSPACE_WIDTH + 2 * arrow_size + 5 + w;
+       bool const changed = dim_ != dim;
        dim_ = dim;
+       return changed;
 }