diff options
author | Christian Lippka <cl@openoffice.org> | 2001-11-15 12:15:01 +0000 |
---|---|---|
committer | Christian Lippka <cl@openoffice.org> | 2001-11-15 12:15:01 +0000 |
commit | 85679d7b741132f296df2724380c261d4c7e2b85 (patch) | |
tree | a5a34cf436802f5e51c482307ededa0fe4ea1e05 /xmloff/source/draw/shapeimport.cxx | |
parent | bab1dce52fadaf77908f25f287d57a5ea48a3dbb (diff) |
#88944# add existing shapes to unsorted list on creating sort context
Diffstat (limited to 'xmloff/source/draw/shapeimport.cxx')
-rw-r--r-- | xmloff/source/draw/shapeimport.cxx | 15 |
1 files changed, 13 insertions, 2 deletions
diff --git a/xmloff/source/draw/shapeimport.cxx b/xmloff/source/draw/shapeimport.cxx index 89f5e9919ed5..e5efda6c884b 100644 --- a/xmloff/source/draw/shapeimport.cxx +++ b/xmloff/source/draw/shapeimport.cxx @@ -2,9 +2,9 @@ * * $RCSfile: shapeimport.cxx,v $ * - * $Revision: 1.45 $ + * $Revision: 1.46 $ * - * last change: $Author: cl $ $Date: 2001-11-08 15:44:42 $ + * last change: $Author: cl $ $Date: 2001-11-15 13:15:01 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -978,6 +978,17 @@ ShapeSortContext::ShapeSortContext( uno::Reference< drawing::XShapes >& rShapes, : mxShapes( rShapes ), mnCurrentZ( 0 ), mpParentContext( pParentContext ), msZOrder(RTL_CONSTASCII_USTRINGPARAM("ZOrder")) { + // first add the already existing shapes in the unsorted list + ZOrderHint aNewHint; + + sal_Int32 nCount = rShapes->getCount(); + while( mnCurrentZ < nCount ) + { + aNewHint.nIs = mnCurrentZ++; + aNewHint.nShould = -1; + + maUnsortedList.push_back(aNewHint); + } } void ShapeSortContext::moveShape( sal_Int32 nSourcePos, sal_Int32 nDestPos ) |