[Libreoffice-bugs] [Bug 128041] conditional text in header/footer fields turned static
bugzilla-daemon at bugs.documentfoundation.org
bugzilla-daemon at bugs.documentfoundation.org
Thu Oct 24 14:05:04 UTC 2019
https://bugs.documentfoundation.org/show_bug.cgi?id=128041
--- Comment #11 from Mike Kaganski <mikekaganski at hotmail.com> ---
(In reply to Heiko Tietze from comment #10)
> ajlittoz sets a variable flag=0 on page 1 and flag=1 on page 2 and expects
> flag to be different on the two pages. This variable is not recalculated
> like in Calc, it is set and obviously overridden at the second time. => WF
Let me try to clarify the one and the only issue here, so that we stop talking
about unrelated stuff.
Open attachment 154851, and *check* "Hidden paragraphs" under
Options->LibreOffice Writer->View.
Look at footers. You see three paragraphs there. The top of them shows two
dynamic pieces of data: one of them if "Page number" field (actually irrelevant
and distracting here); the other is "Show variable" field.
How does *that* paragraph change over pages? It is obvious that these two
pieces of dynamic content - notably "Show variable" field - update their value
depending on which page the corresponding footer is shown. This is OK, and this
is *wanted* behaviour.
Now take a look at the two following paragraphs in the footers. They also have
a field each (a grey shaded tiny area before the first character of each of
those paragraphs); and that is a "Hidden paragraph" field. That field has a
condition; that condition depends on the variable (the same which is displayed
in the paragraph above): the upper paragraph should hide when "flag==0", and
the lower should hide when "flag!=0". But unlike the "Show variable" field,
changing the variable in the text body does *not* affect the "Hidden paragraph"
field in the footer: if it did, then in each page's footer, *current* value of
the variable would determine which of the two paragraphs is made visible, so
each page's footer would have own paragraph shown.
So here is *inconsistency* that the same change of variable *dynamically
affects* one kind of fields in footers, bug *does not dynamically affect* other
kind of fields in footer.
This becomes evident when you disable "Hidden paragraphs" under
Options->LibreOffice Writer->View again (or use print preview). You will see
that in each footer, the same paragraph ("Variable flag is null") is visible on
all pages.
Again: the issue here is *inconsistency* of dynamic evaluation of the field
value between different field types.
--
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/20191024/2a318faf/attachment.html>
More information about the Libreoffice-bugs
mailing list