]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/math_inset.C
Hopefully fix the problem with stateText() in lyxfont.C
[lyx.git] / src / mathed / math_inset.C
index b4340ad317edea706347d64829d9693f51ae93b7..8b872a0af05790d6a29ad015c919b440eac90523 100644 (file)
@@ -7,7 +7,7 @@
  *
  *  Dependencies: Xlib, XForms
  *
- *  Copyright: (c) 1996, 1997 Alejandro Aguilar Sierra
+ *  Copyright: 1996, 1997 Alejandro Aguilar Sierra
  *
  *   Version: 0.8beta.
  *
@@ -416,16 +416,16 @@ void MathMatrixInset::SetData(LyxArrayBase * a)
 }
 
 
-void MathMatrixInset::Draw(int x, int baseline)
+void MathMatrixInset::draw(Painter & pain, int x, int baseline)
 {
-    MathParInset::Draw(x, baseline);
-}                
+    MathParInset::draw(pain, x, baseline);
+}
 
 
 void MathMatrixInset::Metrics()
 {
-    int i, hl, h= 0;
-    MathedRowSt * cprow= 0, * cxrow;
+    int i, hl, h = 0;
+    MathedRowSt * cprow= 0;
 
     if (!row) {
 //     lyxerr << " MIDA ";
@@ -434,7 +434,7 @@ void MathMatrixInset::Metrics()
     } 
     
     // Clean the arrays      
-    cxrow = row;
+    MathedRowSt * cxrow = row;
     while (cxrow) {   
        for (i = 0; i <= nc; ++i) cxrow->w[i] = 0;
        cxrow = cxrow->next;
@@ -517,8 +517,7 @@ MathAccentInset::MathAccentInset(MathedInset *ins, int cd, short st)
 
 MathAccentInset::~MathAccentInset()
 {
-    if (inset) // DEL LINE
-      delete inset;
+       delete inset;
 }