Issue 105653

Summary: Setting a property on a paragraph using UNO will always break
Product: Writer Reporter: cedric.bosdonnat.ooo
Component: programmingAssignee: michael.ruess
Status: CLOSED FIXED QA Contact: issues@sw <issues>
Severity: Trivial    
Priority: P2 CC: issues
Version: DEV300m60Keywords: regression
Target Milestone: ---   
Hardware: All   
OS: All   
Issue Type: PATCH Latest Confirmation in: ---
Developer Difficulty: ---
Issue Depends on:    
Issue Blocks: 99999    
Attachments:
Description Flags
Patch fixing the issue none

Description cedric.bosdonnat.ooo 2009-10-06 15:42:46 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
Comment 1 cedric.bosdonnat.ooo 2009-10-06 15:43:36 UTC
Created attachment 65178 [details]
Patch fixing the issue
Comment 2 michael.ruess 2009-10-06 16:23:57 UTC
MRU->OS: please take care of this patch proposal.
This issue is a regression from OOo 3.1.1 to 3.2.
Comment 3 openoffice 2009-10-07 10:44:29 UTC
applied patch and checked
Comment 4 Oliver Specht 2009-11-17 14:10:00 UTC
Reassigned for verification
Comment 5 michael.ruess 2009-11-23 10:21:55 UTC
Verified fix in CWS hb32showstoppers2.
Macro now correctly works and changes page orientation into "Landscape".
Comment 6 michael.ruess 2010-01-28 10:49:58 UTC
Checked fix in DEV300m70 and OOO320m11.