Apache OpenOffice (AOO) Bugzilla – Issue 90792
WW8: Import protects all sections, although only one is protected
Last modified: 2013-08-07 14:44:35 UTC
If a word document with one protected section is imported, all sections are protected in writer. This problem is serious, as such document structure is the default if a table of content is exportet to .doc. See attached example to verify the issue. Found in Ooo 2.4.1 and 3.0beta as regression to OOo 2.4.
Created attachment 54520 [details] test case
@hbrinkm: please check if it is a dup of issue 87256. Thanx!
@es/hbrinkm: I really don't think, that tis is a dup. The file opens correctly in Word and all (but the one expected) sections can be edited. So in case of this issue we have an import problem, issue 87256 is about export.
It seems this phenomenon has been already fixed in the latest developer build DEV300_m26 with the CWS cmcfixes47. In the following method of sw/source/filter/ww8/ww8par6.cxx void wwSectionManager::CreateSep(const long nTxtPos, bool /*bMustHaveBreak*/) Revision 1.177 (OpenOffice_2_4_0) aNewSection.maSep.fUnlocked = ReadBSprm(pSep, (bVer67 ? 139 : 0x3006), 0 ); Revision 1.177.46.2 (OpenOffice_2_4_1), for the issue 90306? aNewSection.maSep.fUnlocked = eVer <= ww::eWW2 ? ReadBSprm(pSep, (eVer <= ww::eWW7 ? 139 : 0x3006), 0 ) : 0; Revision 1.188 (DEV300_m26), for the issue 90792? aNewSection.maSep.fUnlocked = eVer > ww::eWW2 ? ReadBSprm(pSep, (eVer <= ww::eWW7 ? 139 : 0x3006), 0 ) : 0;
Cannot reproduce on DEV300_m26, too. @cmc: Can you confirm that the changes tora mentioned fix this issue?
yes, that the same issue, and should be ok in m26 now *** This issue has been marked as a duplicate of 90306 ***
closing as duplicate