Jean-Marc Lasgouttes wrote: > Hmm, I'd rather store LyXLength internally. Not being able to convert > correctly is a poor excuse for storing a string that take time to > parse. > > What about making LyXLength using a float instead of a double? > Wouldn't that be really good enough?
I guess the problem remains then (the problem here is that boost::lexical_cast transforms doubles and floats to a string with 9 digits behind the separator; as I wrote in a previous post, there is a workaround from the boost list which lets you set the precision to another fixed value, say: 2; we could do this but I guess Lars has more general reasons for his plans). Jürgen