summaryrefslogtreecommitdiff
path: root/sc/qa/extras/scannotationobj.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'sc/qa/extras/scannotationobj.cxx')
-rw-r--r--sc/qa/extras/scannotationobj.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/sc/qa/extras/scannotationobj.cxx b/sc/qa/extras/scannotationobj.cxx
index c22736f400d8..a8ee3ecfe29b 100644
--- a/sc/qa/extras/scannotationobj.cxx
+++ b/sc/qa/extras/scannotationobj.cxx
@@ -101,12 +101,12 @@ ScAnnontationObj::getAnnotation(table::CellAddress& xCellAddress)
// get the cell
uno::Reference<table::XCell> xCell(
- xSheet->getCellByPosition(xCellAddress.Column, xCellAddress.Row), uno::UNO_QUERY_THROW);
+ xSheet->getCellByPosition(xCellAddress.Column, xCellAddress.Row), uno::UNO_SET_THROW);
// get the annotation from cell
uno::Reference<sheet::XSheetAnnotationAnchor> xAnnotationAnchor(xCell, uno::UNO_QUERY_THROW);
uno::Reference<sheet::XSheetAnnotation> xSheetAnnotation(xAnnotationAnchor->getAnnotation(),
- uno::UNO_QUERY_THROW);
+ uno::UNO_SET_THROW);
return xSheetAnnotation;
}