diff options
author | Jens-Heiner Rechtien <hr@openoffice.org> | 2002-05-16 15:09:59 +0000 |
---|---|---|
committer | Jens-Heiner Rechtien <hr@openoffice.org> | 2002-05-16 15:09:59 +0000 |
commit | 87f258d7f501a03df821480a4a0bac20675a852a (patch) | |
tree | cb385adde049a7ec412931985fbf5c9d6320200a | |
parent | 34de86c5e89dfb86cdbd356bb28d49e8f97cbc21 (diff) |
#90353#: fixed SvPtrArray_SAR::Insert overloads
-rw-r--r-- | svx/source/items/paraitem.cxx | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/svx/source/items/paraitem.cxx b/svx/source/items/paraitem.cxx index cbbd5795ab76..bfa88c548b67 100644 --- a/svx/source/items/paraitem.cxx +++ b/svx/source/items/paraitem.cxx @@ -2,9 +2,9 @@ * * $RCSfile: paraitem.cxx,v $ * - * $Revision: 1.21 $ + * $Revision: 1.22 $ * - * last change: $Author: mhu $ $Date: 2002-05-10 21:22:22 $ + * last change: $Author: hr $ $Date: 2002-05-16 16:09:59 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -935,7 +935,10 @@ SvxTabStopItem::SvxTabStopItem( sal_uInt16 nWhich ) : const SvxTabAdjust eAdjst= SVX_TAB_ADJUST_DEFAULT; for (sal_uInt16 i = 0; i < nTabs; ++i) - SvxTabStopArr::Insert( new SvxTabStop( (i + 1) * nDist, eAdjst ), i ); + { + SvxTabStop * pTab = new SvxTabStop( (i + 1) * nDist, eAdjst ); + SvxTabStopArr::Insert( pTab, 1 ); + } } // ----------------------------------------------------------------------- @@ -948,7 +951,10 @@ SvxTabStopItem::SvxTabStopItem( const sal_uInt16 nTabs, SvxTabStopArr( sal_Int8(nTabs) ) { for ( sal_uInt16 i = 0; i < nTabs; ++i ) - SvxTabStopArr::Insert( new SvxTabStop( (i + 1) * nDist, eAdjst ), i ); + { + SvxTabStop * pTab = new SvxTabStop( (i + 1) * nDist, eAdjst ); + SvxTabStopArr::Insert( pTab, 1 ); + } } // ----------------------------------------------------------------------- |