Bug 120070 - Where there is conditional text within hidden paragraph, paragraph is always visible
Summary: Where there is conditional text within hidden paragraph, paragraph is always ...
Status: RESOLVED FIXED
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
6.1.0.3 release
Hardware: x86-64 (AMD64) All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords: regression
Depends on:
Blocks: Fields
  Show dependency treegraph
 
Reported: 2018-09-22 21:31 UTC by Robert Simpson
Modified: 2018-09-26 05:34 UTC (History)
1 user (show)

See Also:
Crash report or crash signature:


Attachments
zip of writer file and base file (19.81 KB, application/zip)
2018-09-22 21:31 UTC, Robert Simpson
Details
test hidden paragraphs (41.80 KB, application/pdf)
2018-09-23 17:59 UTC, Oliver Brinzing
Details
Testdata.odb (Lo 5.4.7.2) (3.36 KB, application/vnd.sun.xml.base)
2018-09-24 09:49 UTC, Oliver Brinzing
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Robert Simpson 2018-09-22 21:31:41 UTC
Created attachment 145124 [details]
zip of writer file and base file

Since v6, or at least 6.1.0.3, a hidden paragraph is always visible if it contains conditional text. This was not so in v5.4.7.2.

The attachment contains a simple writer file (Test.odt) with 4 conditionally hidden paragraphs, the conditions relating to the data in Testdata.odb. To use mailmerge, the data source must be registered.

Open Test.odt, make the data source visible and write one of the records to the fields in Test.odt

If the first record (with "number" = 1) is written to the fields, paragraphs 1 and 3 should be hidden, but 3 remains visible .
If the second record ("number" = 2) is written to the fields, paragraphs 2 and 4 should be hidden, but 4 remains visible.

The hidden paragraphs always remain visible when there is further conditional text within the paragraph. This should not be so and was not so in previous versions.
Comment 1 Oliver Brinzing 2018-09-23 17:59:51 UTC
Created attachment 145129 [details]
test hidden paragraphs

i can confirm the described behaviour with lo 6.1.1.2.

i can not test with lo 5.4.7.2, cause i get an error 
after db register:
missing sdbc driver for url 'sdbc:embedded:firebird'

but i tried with 

Version: 6.2.0.0.alpha0+ (x64)
Build ID: 3a807c6d6176caaec83654204a2cca41e1be28ea
CPU threads: 4; OS: Windows 10.0; UI render: default; 
Locale: de-DE (de_DE); Calc: threaded

and all paragraphs stay visible!
Comment 2 Oliver Brinzing 2018-09-24 09:49:02 UTC
Created attachment 145136 [details]
Testdata.odb (Lo 5.4.7.2)

no repro with lo 5.4.7.2 and attached Testdata.odb
Comment 3 Oliver Brinzing 2018-09-24 09:55:27 UTC
no repro with lo 6.0.6 and attached Testdata.odb

seems to happen since lo 6.1.0.3 -> regression
Comment 4 Oliver Brinzing 2018-09-24 17:42:12 UTC
i can not longer reproduce this bug with upcoming:

Version: 6.1.2.1 (x64)
Build-ID: 65905a128db06ba48db947242809d14d3f9a93fe
CPU-Threads: 4; BS: Windows 10.0; UI-Render: Standard; 
Gebietsschema: de-DE (de_DE); Calc: 

and

Version: 6.2.0.0.alpha0+ (x64)
Build ID: ec709a8d5e808b970a8930a389c0a5a6f61fe8c7
CPU threads: 4; OS: Windows 10.0; UI render: default; 
Locale: de-DE (de_DE); Calc: threaded
Comment 5 Robert Simpson 2018-09-25 09:00:42 UTC
I am finding that in 6.2.0.0.alpha0+ I can't hide paragraphs at all.
Comment 6 Robert Simpson 2018-09-25 09:05:47 UTC
Consistent with comment 1, I am finding that in 6.2.0.0.alpha0+ I can't hide paragraphs at all.

Build ID: e2a525b00c9ea15408fb64dcb6749405739f58ab
CPU threads: 4; OS: Linux 4.15; UI render: default; VCL: gtk2; 
TinderBox: Linux-rpm_deb-x86_64@70-TDF, Branch:master, Time: 2018-09-17_23:28:47
Locale: en-GB (en_GB.UTF-8); Calc: threaded

Unbuntu 18.04
Comment 7 Oliver Brinzing 2018-09-25 09:38:53 UTC
(In reply to Robert Simpson from comment #6)
> Consistent with comment 1, I am finding that in 6.2.0.0.alpha0+ I can't hide
> paragraphs at all.
> 
> Build ID: e2a525b00c9ea15408fb64dcb6749405739f58ab
> CPU threads: 4; OS: Linux 4.15; UI render: default; VCL: gtk2; 
> TinderBox: Linux-rpm_deb-x86_64@70-TDF, Branch:master, Time:
> 2018-09-17_23:28:47
> Locale: en-GB (en_GB.UTF-8); Calc: threaded
> 
> Unbuntu 18.04

sorry, i made a mistake, with a new user profile, display hidden paragraphs
is activated, please check:

Menu Tools/Options.../LibreOffice Writer/Formating Aids:
Display fields:
 [X] Hidden paragraphs
Comment 8 Robert Simpson 2018-09-25 21:18:13 UTC
You're quite right, Oliver. Silly of me not to have checked that in the new installation of 6.2. No problem in 6.2.0.0 then.