diff options
Diffstat (limited to 'sc/qa/complex/sc/CalcRTL.java')
-rw-r--r-- | sc/qa/complex/sc/CalcRTL.java | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/sc/qa/complex/sc/CalcRTL.java b/sc/qa/complex/sc/CalcRTL.java index 0abeb8abfca0..389afecf5dd2 100644 --- a/sc/qa/complex/sc/CalcRTL.java +++ b/sc/qa/complex/sc/CalcRTL.java @@ -106,6 +106,10 @@ public class CalcRTL /* extends ComplexTestCase */ XPropertySet set = UnoRuntime.queryInterface( XPropertySet.class, getSpreadsheet()); + + // Make sure there are at least 2 sheets, otherwise hiding a sheet won't work + xSheetDoc.getSheets().insertNewByName("Some Sheet", (short)0); + assertTrue("Problems when setting property 'IsVisible'", changeProperty(set, "IsVisible", Boolean.FALSE)); assertTrue("Problems when setting property 'IsVisible'", |