]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/InsetMathSize.cpp
Routines for calculating numerical labels for BibTeX citations.
[lyx.git] / src / mathed / InsetMathSize.cpp
index 1ad777d9a622b2b4a5aa9a04c75095f8eb28f3c4..d3a16317baa2178a10eacab63097bf3b80a64220 100644 (file)
@@ -3,7 +3,7 @@
  * This file is part of LyX, the document processor.
  * Licence details can be found in the file COPYING.
  *
- * \author André Pönitz
+ * \author André Pönitz
  *
  * Full author contact details are available in file CREDITS.
  */
@@ -23,8 +23,8 @@
 
 namespace lyx {
 
-InsetMathSize::InsetMathSize(latexkeys const * l)
-       : InsetMathNest(1), key_(l), style_(Styles(convert<int>(l->extra)))
+InsetMathSize::InsetMathSize(Buffer * buf, latexkeys const * l)
+       : InsetMathNest(buf, 1), key_(l), style_(Styles(convert<int>(l->extra)))
 {}
 
 
@@ -52,9 +52,8 @@ void InsetMathSize::draw(PainterInfo & pi, int x, int y) const
 
 void InsetMathSize::write(WriteStream & os) const
 {
-       bool brace = ensureMath(os);
+       MathEnsurer ensurer(os);
        os << "{\\" << key_->name << ' ' << cell(0) << '}';
-       os.pendingBrace(brace);
 }