fdo#39236: Better way to remove DP objects without reversing order.
fdo#39236: Better way to remove DP objects without reversing order.

The old fix reversed the order of the elements even when no elements
were deleted.  This is better & cleaner.  Thanks to David Tardon for
suggesting me this.

Signed-off-by: Michael Meeks <7e3f212bc57cabc465c9df7f45a34ee84553965e@novell.com>
Signed-off-by: Petr Mladek <9cbcfb1260d253e26a699647bd9cbee55818ea4a@suse.cz>
Signed-off-by: Markus Mohrhard <17b5858c03a410e5ca9ee070d93f5b34144a17e4@googlemail.com>

JurassicWordExcel/core,JurassicWordExcel/core,JurassicWordExcel/core,JurassicWordExcel/core,JurassicWordExcel/core,JurassicWordExcel/core,JurassicWordExcel/core,JurassicWordExcel/core,JurassicWordExcel/core,JurassicWordExcel/core