summaryrefslogtreecommitdiff
path: root/sc/qa/complex/dataPilot/CheckDataPilot.java
diff options
context:
space:
mode:
Diffstat (limited to 'sc/qa/complex/dataPilot/CheckDataPilot.java')
-rw-r--r--sc/qa/complex/dataPilot/CheckDataPilot.java3
1 files changed, 3 insertions, 0 deletions
diff --git a/sc/qa/complex/dataPilot/CheckDataPilot.java b/sc/qa/complex/dataPilot/CheckDataPilot.java
index b042f259072e..45ae37311f78 100644
--- a/sc/qa/complex/dataPilot/CheckDataPilot.java
+++ b/sc/qa/complex/dataPilot/CheckDataPilot.java
@@ -211,6 +211,9 @@ public class CheckDataPilot {
XIndexAccess oIndexAccess =
UnoRuntime.queryInterface(XIndexAccess.class, xSpreadsheets);
+ // Per default there's now just one sheet, make sure we have at least two, then
+ xSpreadsheets.insertNewByName("Some Sheet", (short)0);
+
try {
oSheet = (XSpreadsheet) AnyConverter.toObject(
new Type(XSpreadsheet.class),oIndexAccess.getByIndex(0));