]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/InsetMathComment.cpp
Remove hardcoded values
[lyx.git] / src / mathed / InsetMathComment.cpp
index 096cf38752d80371d7b6941d9ebad25459205e02..b8c157b2c2cff3e46d70f3b30399419af781eca4 100644 (file)
@@ -26,6 +26,13 @@ InsetMathComment::InsetMathComment(Buffer * buf)
 {}
 
 
+InsetMathComment::InsetMathComment(MathData const & ar)
+       : InsetMathNest(const_cast<Buffer *>(ar.buffer()), 1)
+{
+       cell(0) = ar;
+}
+
+
 InsetMathComment::InsetMathComment(Buffer * buf, docstring const & str)
        : InsetMathNest(buf, 1)
 {
@@ -43,7 +50,7 @@ Inset * InsetMathComment::clone() const
 void InsetMathComment::metrics(MetricsInfo & mi, Dimension & dim) const
 {
        cell(0).metrics(mi, dim);
-       metricsMarkers(dim);
+       metricsMarkers(mi, dim);
 }