Am 15.04.2013 12:43, schrieb Jean-Marc Lasgouttes:
Here is a patch that should help in this respect. It maps empty length to the
empty string.
Does it help?
LyX now crashes when I use the box dialog. But even if Length() results in an empty string the
result of the parameter reading would still be "0pt".
In line 303 of GuiBox.cpp we have
Length::UNIT const default_unit = Length::defaultUnit();
and Length::defaultUnit() is "pt".
This is correct and we need a default unit for many cases. So this cannot be
changed.
My solution does indeed not look nice but is with a closer look simpler than all others that we
found so far. So is it really worth it to implement a new empty length feature? I mean that is much
more code than having in 2 files a special code for en empty length?
regards Uwe