[...] > > Ok, I tried going a different approach of modifying tex2lyx to achieve the > expected results when importing documents. > The idea is to use 1\totalheight instead of 0pt as the default value when > importing a parbox/minipage with no height. This would achieve what people > expect on import and match lyx's default behaviour when creating a new > parbox/minipage. This is a three liner one. > I still think that adding a option for an empty height value is better and I > have some ideas on how to go about it, but that is a much deeper intervention > with the code so I need to look into it's side effects much more seriously and > thus should probably not go into lyx 1.5.0 (the problem at the moment is that > there is no way to use UNIT_NONE and no test against it) >
I need some pointer to finish doing the complete work and not just the previous patch that fixes the import (I.E allowing an empty height field). I've managed to add a None unit option to the dialog by changing lengthcommon.cpp but I can't make it catch on, if I pick it, it defaults back to 0pt instead of setting Length::empty() to true (UNIT_NONE). Where is that check performed? (I need to add the extra state) Thanks > The patch is attached. > Micha