diff options
Diffstat (limited to 'svx')
-rw-r--r-- | svx/inc/svx/svdmark.hxx | 6 | ||||
-rw-r--r-- | svx/source/svdraw/svdmark.cxx | 5 |
2 files changed, 6 insertions, 5 deletions
diff --git a/svx/inc/svx/svdmark.hxx b/svx/inc/svx/svdmark.hxx index 81121c1ffd97..9673d7292886 100644 --- a/svx/inc/svx/svdmark.hxx +++ b/svx/inc/svx/svdmark.hxx @@ -226,11 +226,7 @@ public: return maList.size(); } - SdrMark* GetMark(sal_uLong nNum) const - { - return maList[nNum]; - } - + SdrMark* GetMark(sal_uLong nNum) const; sal_uLong FindObject(const SdrObject* pObj) const; void InsertEntry(const SdrMark& rMark, sal_Bool bChkSort = sal_True); void DeleteMark(sal_uLong nNum); diff --git a/svx/source/svdraw/svdmark.cxx b/svx/source/svdraw/svdmark.cxx index b99cff9973ef..e475dd68673c 100644 --- a/svx/source/svdraw/svdmark.cxx +++ b/svx/source/svdraw/svdmark.cxx @@ -356,6 +356,11 @@ void SdrMarkList::operator=(const SdrMarkList& rLst) mbSorted = rLst.mbSorted; } +SdrMark* GetMark(sal_uLong nNum) const +{ + return (nNum < maList.size()) ? maList[nNum] : NULL; +} + sal_uLong SdrMarkList::FindObject(const SdrObject* pObj) const { // Since relying on OrdNums is not allowed for the selection because objects in the |