summaryrefslogtreecommitdiff
path: root/wizards/com/sun/star/wizards/text/TextFieldHandler.java
diff options
context:
space:
mode:
Diffstat (limited to 'wizards/com/sun/star/wizards/text/TextFieldHandler.java')
-rw-r--r--wizards/com/sun/star/wizards/text/TextFieldHandler.java17
1 files changed, 5 insertions, 12 deletions
diff --git a/wizards/com/sun/star/wizards/text/TextFieldHandler.java b/wizards/com/sun/star/wizards/text/TextFieldHandler.java
index 0ecc84da19ec..66c818efc3ef 100644
--- a/wizards/com/sun/star/wizards/text/TextFieldHandler.java
+++ b/wizards/com/sun/star/wizards/text/TextFieldHandler.java
@@ -123,7 +123,7 @@ public class TextFieldHandler
return xPSet;
}
- private XDependentTextField[] getTextFieldsByProperty(String _PropertyName, Object _aPropertyValue, String _TypeName) throws Exception
+ private XDependentTextField[] getTextFieldsByProperty(String _PropertyName, Object _aPropertyValue, String _TypeName)
{
try
{
@@ -285,21 +285,14 @@ public class TextFieldHandler
public void removeUserFieldByContent(String _FieldContent)
{
- try
+ XDependentTextField[] xDependentTextFields = getTextFieldsByProperty("Content", _FieldContent, "String");
+ if (xDependentTextFields != null)
{
- XDependentTextField[] xDependentTextFields = getTextFieldsByProperty("Content", _FieldContent, "String");
- if (xDependentTextFields != null)
+ for (int i = 0; i < xDependentTextFields.length; i++)
{
- for (int i = 0; i < xDependentTextFields.length; i++)
- {
- xDependentTextFields[i].dispose();
- }
+ xDependentTextFields[i].dispose();
}
}
- catch (Exception e)
- {
- e.printStackTrace(System.err);
- }
}
public void changeExtendedUserFieldContent(short UserDataPart, String _FieldContent)