]> 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 da543e7a25ec8b87bf41b2246fd400451f200f56..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,23 +416,16 @@ void MathMatrixInset::SetData(LyxArrayBase * a)
 }
 
 
-#ifdef USE_PAINTER
 void MathMatrixInset::draw(Painter & pain, int x, int baseline)
 {
     MathParInset::draw(pain, x, baseline);
 }
-#else
-void MathMatrixInset::Draw(int x, int baseline)
-{
-    MathParInset::Draw(x, baseline);
-}
-#endif
 
 
 void MathMatrixInset::Metrics()
 {
-    int i, hl, h= 0;
-    MathedRowSt * cprow= 0, * cxrow;
+    int i, hl, h = 0;
+    MathedRowSt * cprow= 0;
 
     if (!row) {
 //     lyxerr << " MIDA ";
@@ -441,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;