[Libreoffice-bugs] [Bug 128041] conditional text in header/footer fields turned static

bugzilla-daemon at bugs.documentfoundation.org bugzilla-daemon at bugs.documentfoundation.org
Fri Oct 25 08:35:48 UTC 2019


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

--- Comment #14 from ajlittoz <page74010-sf at yahoo.fr> ---
Once again, thanks Mike: you have perfectly understood my point with the
attachment and you clarified my intent.

I should have added explanations/comments in the attachment to explicitly tell
what I expected.

The first paragraph in the footer is there to echo the current value of the
variables. Paragraphs 2 and 3 (with complementary conditions) are there as a
usage of "hidden paragraph" field. They are both there to ensure that "hidden
paragraph" is working in a footer: either one or the other should produce
output. If none, then there is a bug in the feature (which is not the case).

You rightfully pointed out the *inconsistency* of field evaluation related to
variables ("show variable" vs. condition in "hidden paragraph").

Without looking at the code, I have the feeling that conditions are evaluated
when the footer is first met as *early evaluation* which has the advantage of
caching a simplified version on footer content where you no longer need to
compute expressions afterwards. Unfortunately, it results in the demonstrated
inconsistency.

I don't know if this may be a clue or not to the cause of the problem.

-- 
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/20191025/82d34e40/attachment.html>


More information about the Libreoffice-bugs mailing list