Apache OpenOffice (AOO) Bugzilla – Issue 56904
WW8: Conditional Text Broken in Ver. 2.0; worked in 1.1.5
Last modified: 2017-05-20 11:22:50 UTC
This bug occurs when user sets up conditional text in OpenOffice word processer and then tries to save the document in MS Word format. Instead of respecting the conditions set up, OpenOffice simply saves the document with ALL text showing. The bug occurs in version 2 but not in version 1.1.5. See post by JohnV at: http://www.oooforum.org/forum/viewtopic.phtml?t=25419 (I started that thread -"SmartCat") To duplicate; simply set up a variable for conditional text so that one line shows if the variable is set to 1 and another line shows if the variable is set to 0. Now set the variable to either 1 or 0 and save the document to MS Word format. Note that the saved document contains ALL the text regardless of what the variable was set to at the time of the save. Patrick
@patrick_c Pls. specify your Platrofm and OS. Can you pls. attach a small test document.sxw?
MRU->FLR: export the attached .odt to WW8 format and reopen -> all hidden text fields have been exported as if the condition was false. This worked correctly in OO 1.1.4.
Created attachment 31045 [details] Document containing conditional text
To duplicate the bug, the conditional text must be associated with a SECTION. My apologies for not mentioning this in the original report. I'm attaching a very simple ".odt" example document ...or you can follow the steps below to duplicate the bug: Start a new text doc With Cursor on the first line go to the insert menu: >insert>Fields>Other>Variables make sure “Set Variable” is highlighted in the first box. …now for “name” enter “a”, for “value” enter “1” and click the “invisible” checkbox On about the third line enter: “Should not show if a==0” On about the fifth line enter: “Should not show if a==1” Now select the entire third line with the cursor and with the entire line selected go to the insert menu: >Insert>Section …accept all defaults, then click the “Hide” checkbox and in the “with condition” box enter “a==0” Now select the entire fifth line with the cursor and with the entire line selected go to the insert menu: >Insert>Section …accept all defaults, then click the “Hide” checkbox and in the “with condition” box enter “a==0” Now go back to the beginning of the first line and double-click the hidden “a” variable, bring up the dialog box to change the value of “a” alternatively to 1 or 0 and note that the correct line disappears. Now Save the doc as MS Word Format and note that both lines are present in the saved doc -this is the bug.
Created attachment 31058 [details] Sample ".odt" doc to demo Cond. Txt Bug
Just noticed a (fairly obvious) error in the instructions I entered 10mins ago. For the second section, the condition should be Hide if "a==1" (not a==0).
My Platform/OS: Windows XP
We will not finish this until 2.0.2 code freeze -> retargetting to 2.0.3
In OOo1.1 we didn't really export conditional text, we imported only normal text (by evaluating the visibility at the time of saving). So I agree that something that was broken now is even more broken ;-) but I don't see it important enough to fix it for 2.0.3.
*** Issue 63644 has been marked as a duplicate of this issue. ***
Due to missing resources retargetted to "OOo Later"
assigned to hbrinkm
This Issue requires more information ('needmoreinfo'), but has not been updated within the last year. Please re-test with one of the latest versions of OOo - the problem(s) may have already been addressed. Either use the recent stable version: http://download.openoffice.org/index.html or consider trying the new OOo 3 BETA (still in testing): http://download.openoffice.org/3.0beta/ Please report back the outcome so this Issue may be closed or progressed as necessary - otherwise it may be Resolved as Invalid in the future. You may also wish to search for (and note) any duplicates of this Issue that may have advanced further : http://www.openoffice.org/issues/query.cgi Regards, Andrew Cleaning-up and Closing old Issues as part of: ~ The Grand Bug Squash, pre v3 ~
Created attachment 73056
Reset assigne to the default "issues@openoffice.apache.org".