diff options
author | Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de> | 2018-01-23 11:22:27 +0100 |
---|---|---|
committer | Eike Rathke <erack@redhat.com> | 2018-01-26 21:42:32 +0100 |
commit | 401d4516234994d317a7c899358e8c2eef447fdc (patch) | |
tree | 1f1d6f61ca613e7d57f9fdc0d8e7111c6527e1ad /sc/inc | |
parent | 0254e17978e96678538199dff65d00677093c1ec (diff) |
Improve performance when searching for blocks w/o draw objects
... by returning when the first object in the lookup range has been found
Follow-up for 3a2a430ae8e2c1647c18d8904477949f6e2e7941
Change-Id: I5cc9a268793eb8d156a39b0a2de557220da96748
Reviewed-on: https://gerrit.libreoffice.org/48395
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Eike Rathke <erack@redhat.com>
Diffstat (limited to 'sc/inc')
-rw-r--r-- | sc/inc/drwlayer.hxx | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sc/inc/drwlayer.hxx b/sc/inc/drwlayer.hxx index 56c820d465d3..d9155d0d90f0 100644 --- a/sc/inc/drwlayer.hxx +++ b/sc/inc/drwlayer.hxx @@ -183,6 +183,7 @@ public: static void UpdateCellAnchorFromPositionEnd( const SdrObject &rObj, ScDrawObjData &rAnchor, const ScDocument &rDoc, SCTAB nTab, bool bUseLogicRect = true ); static ScAnchorType GetAnchorType( const SdrObject& ); std::vector<SdrObject*> GetObjectsAnchoredToCell(const ScAddress& rPos); + bool HasObjectsAnchoredInRange(ScRange& rRange); void MoveObject(SdrObject* pObj, ScAddress& rNewPosition); // positions for detektive lines |