Apache OpenOffice (AOO) Bugzilla – Issue 105653
Setting a property on a paragraph using UNO will always break
Last modified: 2013-08-07 14:44:00 UTC
http://svn.services.openoffice.org/opengrok/xref/Current%20(trunk)/sw/source/core/unocore/unoparagraph.cxx#308 in this code, the sTmp variable is always empty: this causes the SwXTextCursor::SetPropertyValue to raise an exception in every case. Here is a sample of UNO Basic code showing the problem: Sub Main oEnum = ThisComponent.Text.createEnumeration oPara = oEnum.nextElement( ) oPara.setPropertyValue( "PageDescName", "Landscape" ) End Sub I'll attach a patch fixing the issue
Created attachment 65178 [details] Patch fixing the issue
MRU->OS: please take care of this patch proposal. This issue is a regression from OOo 3.1.1 to 3.2.
applied patch and checked
Reassigned for verification
Verified fix in CWS hb32showstoppers2. Macro now correctly works and changes page orientation into "Landscape".
Checked fix in DEV300m70 and OOO320m11.