runtime error: load of value 4294967293, which is not a valid value for type 'const lyx::Update::flags'
Jean-Marc Lasgouttes
lasgouttes at lyx.org
Sun Jan 23 16:35:30 UTC 2022
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
More information about the lyx-devel
mailing list