Le 23/01/2022 à 10:43, Kornel Benko a écrit :
Here 2 possible patches which do not show the behaviour.
(I prefer the number 2)

Number 2 is indeed the best as a short term solution.

However the real issueis that this game with specialized operators is a bit stupid: the result of or-ing two enum elements is not an enum element. The combination of enum flags should be stored in an int like Qt does (or a fancy template-based solution).

Besides the fact that we try to shoehorn it into an enum, the computation highlighted above is perfectly OK.

JMarc
--
lyx-devel mailing list
lyx-devel@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-devel

Reply via email to