summaryrefslogtreecommitdiff
path: root/wizards/com/sun/star/wizards/document/Control.java
diff options
context:
space:
mode:
Diffstat (limited to 'wizards/com/sun/star/wizards/document/Control.java')
-rw-r--r--wizards/com/sun/star/wizards/document/Control.java6
1 files changed, 3 insertions, 3 deletions
diff --git a/wizards/com/sun/star/wizards/document/Control.java b/wizards/com/sun/star/wizards/document/Control.java
index fb4191277b8c..96485cdf84ce 100644
--- a/wizards/com/sun/star/wizards/document/Control.java
+++ b/wizards/com/sun/star/wizards/document/Control.java
@@ -133,7 +133,7 @@ public class Control extends Shape
{
XNameAccess xNameAccess = (XNameAccess) UnoRuntime.queryInterface(XNameAccess.class, xFormName);
String sControlName = Desktop.getUniqueName(xNameAccess, getControlName(_fieldname));
- xPropertySet.setPropertyValue("Name", sControlName);
+ xPropertySet.setPropertyValue(PropertyNames.PROPERTY_NAME, sControlName);
xFormName.insertByName(sControlName, xControlModel);
}
}
@@ -248,9 +248,9 @@ public class Control extends Shape
{
xPropertySet.setPropertyValue("Text", sText);
}
- else if (xPropertySet.getPropertySetInfo().hasPropertyByName("Label"))
+ else if (xPropertySet.getPropertySetInfo().hasPropertyByName(PropertyNames.PROPERTY_LABEL))
{
- xPropertySet.setPropertyValue("Label", sText);
+ xPropertySet.setPropertyValue(PropertyNames.PROPERTY_LABEL, sText);
}
else
{