Angus Leeming wrote: > Jürgen, I think that the attached patch is conceptually the same as your > original and (thanks to André) is easier to follow. Please review.
Except for one typo (below): perfect. Many thanks! Since I do not want to claim the credit for this undeservedly, I let you apply this, if there's no more objection on the concept itself. Regards, Jürgen. > +namespace { > + > +bool noTrivlistCentering(UpdatableInset const * inset) > +{ > + if (inset && inset->owner()) { > + InsetOld::Code const code = inset->owner()->lyxCode(); > + return code == InsetOld::FLOAT_CODE || > + code == InsetOld::FLOAT_CODE; code == InsetOld::WRAP_CODE;