diff options
author | Christian Lippka <cl@openoffice.org> | 2001-06-19 13:53:22 +0000 |
---|---|---|
committer | Christian Lippka <cl@openoffice.org> | 2001-06-19 13:53:22 +0000 |
commit | 957c694caef0a18b85e1ea73532ae062b6887802 (patch) | |
tree | c2e68c141c7cdc28ce0b95da5897d542241d518a /svx/source/unodraw | |
parent | 4955786cd2af7aef46bb44ed733959da1711ef5d (diff) |
#87219# fixed glue point api to use ids not index
Diffstat (limited to 'svx/source/unodraw')
-rw-r--r-- | svx/source/unodraw/gluepts.cxx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/svx/source/unodraw/gluepts.cxx b/svx/source/unodraw/gluepts.cxx index c94fcdd19b51..351d4258a290 100644 --- a/svx/source/unodraw/gluepts.cxx +++ b/svx/source/unodraw/gluepts.cxx @@ -2,9 +2,9 @@ * * $RCSfile: gluepts.cxx,v $ * - * $Revision: 1.7 $ + * $Revision: 1.8 $ * - * last change: $Author: cl $ $Date: 2001-06-11 08:28:08 $ + * last change: $Author: cl $ $Date: 2001-06-19 14:49:19 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -302,7 +302,7 @@ sal_Int32 SAL_CALL SvxUnoGluePointAccess::insert( const uno::Any& aElement ) thr USHORT nId = pList->Insert( aSdrGlue ); mpObject->SendRepaintBroadcast(); - return (sal_Int32)(nId + NON_USER_DEFINED_GLUE_POINTS); + return (sal_Int32)((*pList)[nId].GetId() + NON_USER_DEFINED_GLUE_POINTS); } throw lang::IllegalArgumentException(); @@ -416,7 +416,7 @@ uno::Sequence< sal_Int32 > SAL_CALL SvxUnoGluePointAccess::getIdentifiers() thro *pIdentifier++ = (sal_Int32)i; for( i = 0; i < nCount; i++ ) - *pIdentifier++ = (sal_Int32) (*pList)[i].GetId(); + *pIdentifier++ = (sal_Int32) (*pList)[i].GetId() + NON_USER_DEFINED_GLUE_POINTS; return aIdSequence; } |