]> git.lyx.org Git - lyx.git/blobdiff - src/insets/insettheorem.C
* src/LyXAction.C: mark goto-clear-bookmark as working without buffer
[lyx.git] / src / insets / insettheorem.C
index ceb90555ba3f6f804755e0157ad7641587b30cc9..4273ffecf65e073fa74eccfabdf872efcd66b21f 100644 (file)
@@ -21,6 +21,9 @@
 
 #include "support/std_ostream.h"
 
+
+namespace lyx {
+
 using std::endl;
 using std::ostream;
 
@@ -66,12 +69,14 @@ auto_ptr<InsetBase> InsetTheorem::doClone() const
        return result;
 }
 
-void InsetTheorem::metrics(MetricsInfo & mi, Dimension & dim) const
+bool InsetTheorem::metrics(MetricsInfo & mi, Dimension & dim) const
 {
        InsetCollapsable::metrics(mi, dim);
        center_indent_ = (mi.base.textwidth - dim.wid) / 2;
        dim.wid = mi.base.textwidth;
+       bool const changed = dim_ != dim;
        dim_ = dim;
+       return changed;
 }
 
 
@@ -97,3 +102,6 @@ int InsetTheorem::latex(Buffer const * buf, odocstream & os,
 
        return i + 2;
 }
+
+
+} // namespace lyx