[Libreoffice-bugs] [Bug 143881] FORMULA: abs{x}^2 is formatted with unexpected operator precedence

bugzilla-daemon at bugs.documentfoundation.org bugzilla-daemon at bugs.documentfoundation.org
Mon Aug 23 01:18:06 UTC 2021


https://bugs.documentfoundation.org/show_bug.cgi?id=143881

--- Comment #8 from dante19031999 at gmail.com ---
> 2. Introduce a compatibility flag, that would signal that abs priority is
> changed.

That's no so easy. The token list is hardcoded into the code.
It's set up on program initialization, even before the SMMOD even exists.

It could be accessed from a static function, using a bad hack ( const cast +
search for TABS, not 100% sure it won't break ). In that case we would add that
flag to SmModel::_getPropertyValues and SmModel::_setPropertyValues . It would
be initialized as "new mode". And add a trigger on the importer that would set
it up to "old mode".

It would need a second flag to check if the first one has the default value or
actually was set by the document.

However, there are some things that I'm not confident about.
How will this react while using multiple thread (multiple formulas at same
time).
If it has to be thread safe, then I'm not confident it can be done.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/libreoffice-bugs/attachments/20210823/c05343c8/attachment.htm>


More information about the Libreoffice-bugs mailing list