summaryrefslogtreecommitdiff
path: root/sc/inc/userdat.hxx
diff options
context:
space:
mode:
Diffstat (limited to 'sc/inc/userdat.hxx')
-rw-r--r--sc/inc/userdat.hxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/sc/inc/userdat.hxx b/sc/inc/userdat.hxx
index 655d869b0d84..8b1b1cee9e77 100644
--- a/sc/inc/userdat.hxx
+++ b/sc/inc/userdat.hxx
@@ -47,8 +47,8 @@ public:
explicit ScDrawObjData();
- tools::Rectangle getShapeRect() { return maShapeRect; };
- tools::Rectangle getLastCellRect() { return maLastCellRect; };
+ const tools::Rectangle & getShapeRect() { return maShapeRect; };
+ const tools::Rectangle & getLastCellRect() { return maLastCellRect; };
void setShapeRect(const ScDocument* rDoc, tools::Rectangle rNewRect, bool bIsVisible=true)
{
// bIsVisible should be false when the object is hidden obviously. we dont want to store the old cell rect in that