diff options
Diffstat (limited to 'qadevOOo/tests/java/mod/_sc/ScAnnotationTextCursor.java')
-rw-r--r-- | qadevOOo/tests/java/mod/_sc/ScAnnotationTextCursor.java | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/qadevOOo/tests/java/mod/_sc/ScAnnotationTextCursor.java b/qadevOOo/tests/java/mod/_sc/ScAnnotationTextCursor.java index bbb2f12bc65b..11171c8f9e4a 100644 --- a/qadevOOo/tests/java/mod/_sc/ScAnnotationTextCursor.java +++ b/qadevOOo/tests/java/mod/_sc/ScAnnotationTextCursor.java @@ -104,14 +104,13 @@ public class ScAnnotationTextCursor extends TestCase { XSpreadsheetDocument xArea = UnoRuntime.queryInterface(XSpreadsheetDocument.class, xSheetDoc); - XSpreadsheets oSheets = (XSpreadsheets) xArea.getSheets(); + XSpreadsheets oSheets = xArea.getSheets(); XIndexAccess XAccess = UnoRuntime.queryInterface(XIndexAccess.class, oSheets); XSpreadsheet oSheet = (XSpreadsheet)XAccess.getByIndex(cellPos.Sheet); - XCellRange oCRange = (XCellRange) - UnoRuntime.queryInterface(XCellRange.class, oSheet); + XCellRange oCRange = UnoRuntime.queryInterface(XCellRange.class, oSheet); XCell oCell = oCRange.getCellByPosition(cellPos.Column, cellPos.Row); |