summaryrefslogtreecommitdiffstats
path: root/svx/inc
diff options
context:
space:
mode:
authorThorsten Behrens <tbehrens@suse.com>2012-11-02 19:42:47 +0100
committerThorsten Behrens <tbehrens@suse.com>2012-11-02 19:48:11 +0100
commit46aec3014b16286df97ed0c7a47f509fffb564c9 (patch)
tree7ec6c8398cc5b97fa5d467c89317d799bd158d10 /svx/inc
parentchange std::clog debug output to SAL_INFO, so that it can be turned off (diff)
downloadcore-46aec3014b16286df97ed0c7a47f509fffb564c9.tar.gz
core-46aec3014b16286df97ed0c7a47f509fffb564c9.zip
Fix crash during polygon handle travelling.
Improving on 7d5922ca8f04604aba57708ee20fb4cdeaea2e44 wrt. bound checking and non-truncation of index magic values. Change-Id: If33495075472fdf242b2de0893fd44109ec7bc83
Diffstat (limited to 'svx/inc')
-rw-r--r--svx/inc/svx/svdhdl.hxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/svx/inc/svx/svdhdl.hxx b/svx/inc/svx/svdhdl.hxx
index 3a44b927fb20..10fcc84a9c98 100644
--- a/svx/inc/svx/svdhdl.hxx
+++ b/svx/inc/svx/svdhdl.hxx
@@ -480,7 +480,7 @@ public:
// 3.Level Position (x+y)
void Sort();
sal_uIntPtr GetHdlCount() const { return aList.size(); }
- SdrHdl* GetHdl(sal_uIntPtr nNum) const { return aList[nNum]; }
+ SdrHdl* GetHdl(sal_uIntPtr nNum) const { return nNum != CONTAINER_ENTRY_NOTFOUND ? aList[nNum] : NULL; }
sal_uIntPtr GetHdlNum(const SdrHdl* pHdl) const;
void SetHdlSize(sal_uInt16 nSiz);
sal_uInt16 GetHdlSize() const { return nHdlSize; }