Also discussed in bugzilla, goes also in 1.5 and 1.4.

Georg

PS: I switched already to "no ChangeLog".
Index: src/tex2lyx/table.C
===================================================================
--- src/tex2lyx/table.C	(Revision 13208)
+++ src/tex2lyx/table.C	(Arbeitskopie)
@@ -1059,7 +1059,7 @@
 		   << verbose_valign(colinfo[col].valign) << "\""
 		   << write_attribute("leftline", colinfo[col].leftlines > 0)
 		   << write_attribute("rightline", colinfo[col].rightlines > 0)
-		   << write_attribute("width", colinfo[col].width)
+		   << write_attribute("width", translate_len(colinfo[col].width))
 		   << write_attribute("special", colinfo[col].special)
 		   << ">\n";
 	}
@@ -1099,7 +1099,7 @@
 			//if (cell.bottomline)
 			//	cerr << " bottomline=\"true\"";
 			os << " usebox=\"none\""
-			   << write_attribute("width", cell.width);
+			   << write_attribute("width", translate_len(cell.width));
 			if (cell.multi != CELL_NORMAL)
 				os << write_attribute("special", cell.special);
 			os << ">"
Index: src/tex2lyx/tex2lyx.h
===================================================================
--- src/tex2lyx/tex2lyx.h	(Revision 13208)
+++ src/tex2lyx/tex2lyx.h	(Arbeitskopie)
@@ -31,6 +31,8 @@
 
 
 /// in text.C
+std::string translate_len(std::string const &);
+
 void parse_text(Parser & p, std::ostream & os, unsigned flags, bool outer,
 		Context & context);
 
Index: src/tex2lyx/text.C
===================================================================
--- src/tex2lyx/text.C	(Revision 13208)
+++ src/tex2lyx/text.C	(Arbeitskopie)
@@ -293,7 +293,9 @@
 	return true;
 }
 
+}
 
+
 string translate_len(string const & length)
 {
 	string unit;
@@ -305,6 +305,8 @@
 }
 
 
+namespace {
+
 /*!
  * Translates a LaTeX length into \p value, \p unit and
  * \p special parts suitable for a box inset.

Reply via email to