]> git.lyx.org Git - features.git/blobdiff - src/mathed/math_inset.C
mathed cleanup, change mask for tmpdir
[features.git] / src / mathed / math_inset.C
index 87bb14e34d3cee39fa17acc770a3a4a7ce181a77..ade5ec2db17a2c54084614834f5b393cdd9d73e6 100644 (file)
 #include "mathed/support.h"
 #include "Painter.h"
 
+
+// Initialize some static class variables.
 int MathedInset::df_asc;
 int MathedInset::df_des;
 int MathedInset::df_width;
 int MathedInset::workWidth;
 
 
-MathedInset::MathedInset(MathedInset * inset) 
-{
-       if (inset) {
-               name = inset->GetName();
-               objtype = inset->GetType();
-               size_ = inset->GetStyle();
-               width = inset->Width();
-               ascent = inset->Ascent();
-               descent = inset->Descent();
-       } else {
-               objtype = LM_OT_UNDEF;
-               size_ = LM_ST_TEXT;
-               width = ascent = descent = 0;
-               //name = 0;
-       }
-}
-
-
 MathedInset::MathedInset(string const & nm, short ot, short st)
-       : name(nm), objtype(ot), size_(st) 
-{
-       width = ascent = descent = 0;
-}
+       : name(nm), objtype(ot), width(0), ascent(0), descent(0), size_(st) 
+{}
 
 
 // In a near future maybe we use a better fonts renderer