]> git.lyx.org Git - lyx.git/blobdiff - src/tabular_funcs.h
I reactivate the code to resize the InsetText on a resize event of the main
[lyx.git] / src / tabular_funcs.h
index 6f500df26d2139684c20d15889886e7b876a2a64..fd686e1575e30461357edaee770475f9d2ab245b 100644 (file)
@@ -19,7 +19,6 @@
 #endif
 
 #include "LString.h"
-#include "layout.h"
 #include "tabular.h"
 
 #include <iosfwd>
 template<class T>
 string const write_attribute(string const & name, T const & t)
 {
+       if (tostr(t).empty())
+               return string();
+       
        string str = " " + name + "=\"" + tostr(t) + "\"";
        return str;
 }
 template<>
 string const write_attribute(string const & name, bool const & b);
 template<>
+string const write_attribute(string const & name, int const & b);
+template<>
 string const write_attribute(string const & name, LyXLength const & value);
 string const tostr(LyXAlignment const & num);
 string const tostr(LyXTabular::VAlignment const & num);