diff options
Diffstat (limited to 'qadevOOo/runner/util/ValueChanger.java')
-rw-r--r-- | qadevOOo/runner/util/ValueChanger.java | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/qadevOOo/runner/util/ValueChanger.java b/qadevOOo/runner/util/ValueChanger.java index 8388b4c2222f..ae00eadb2e62 100644 --- a/qadevOOo/runner/util/ValueChanger.java +++ b/qadevOOo/runner/util/ValueChanger.java @@ -1,7 +1,7 @@ /************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * + * * Copyright 2000, 2010 Oracle and/or its affiliates. * * OpenOffice.org - a multi-platform office productivity suite @@ -47,7 +47,7 @@ public class ValueChanger { public static Object changePValue( Object oldValue ) { Object newValue = null; - + if (oldValue instanceof com.sun.star.uno.Any) { try { oldValue = AnyConverter.toObject(((Any) oldValue).getType(),oldValue); @@ -714,7 +714,7 @@ public class ValueChanger { newVal.Name = ((PropertyValue)oldValue).Name; newVal.Value = changePValue(((PropertyValue)oldValue).Value); newValue = newVal; - } else + } else if (oldValue instanceof com.sun.star.sheet.ValidationAlertStyle){ com.sun.star.sheet.ValidationAlertStyle VAS1 = com.sun.star.sheet.ValidationAlertStyle.INFO; com.sun.star.sheet.ValidationAlertStyle VAS2 = com.sun.star.sheet.ValidationAlertStyle.MACRO; @@ -860,7 +860,7 @@ public class ValueChanger { } else { if ( oldPPC.Coordinates[0].length == 0 ) { newPPC.Coordinates = pArray; - newPPC.Flags = fArray; + newPPC.Flags = fArray; } else { newPPC.Coordinates[0][0].X = oldPPC.Coordinates[0][0].X +1; newPPC.Coordinates[0][0].Y = oldPPC.Coordinates[0][0].Y +1; |