From 68f65c4c08a8804b9a28b926c2a08cee486b60e9 Mon Sep 17 00:00:00 2001 From: Lionel Elie Mamane Date: Fri, 19 Dec 2014 15:34:32 +0100 Subject: fdo#87301 don't rely on the shape to get the control as it forgets its associated control Change-Id: Ia5bd2212725376ab629f2c271102cea2cff9e823 --- wizards/com/sun/star/wizards/form/StyleApplier.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'wizards/com/sun/star/wizards/form') diff --git a/wizards/com/sun/star/wizards/form/StyleApplier.java b/wizards/com/sun/star/wizards/form/StyleApplier.java index 4a171e022fba..10037aa4990c 100644 --- a/wizards/com/sun/star/wizards/form/StyleApplier.java +++ b/wizards/com/sun/star/wizards/form/StyleApplier.java @@ -271,7 +271,7 @@ public class StyleApplier TimeStampControl oTimeStampControl = (TimeStampControl) DBControls[n]; for (int i = 0; i < 2; i++) { - XPropertySet xPropertySet = oTimeStampControl.getControlofGroupShapeByIndex(i); + XPropertySet xPropertySet = oTimeStampControl.getControlByIndex(i); if (xPropertySet.getPropertySetInfo().hasPropertyByName(PropertyNames.PROPERTY_BORDER)) { xPropertySet.setPropertyValue(PropertyNames.PROPERTY_BORDER, IBorderValue); @@ -405,7 +405,7 @@ public class StyleApplier TimeStampControl oTimeStampControl = (TimeStampControl) aDBControl; for (int i = 0; i < 2; i++) { - XPropertySet xPropertySet = oTimeStampControl.getControlofGroupShapeByIndex(i); + XPropertySet xPropertySet = oTimeStampControl.getControlByIndex(i); setDBControlColors(xPropertySet, _iStyleColors); } } -- cgit v1.2.3