From e7b267fa8c164723e7e4f4c6fd2a828de2c3ec41 Mon Sep 17 00:00:00 2001 From: fgerlits Date: Fri, 3 Feb 2006 18:26:47 +0000 Subject: [PATCH] fixed #1614 --- .../src/products/gLiveSupport/src/ScratchpadWindow.cxx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/livesupport/src/products/gLiveSupport/src/ScratchpadWindow.cxx b/livesupport/src/products/gLiveSupport/src/ScratchpadWindow.cxx index debb611db..9b813469d 100644 --- a/livesupport/src/products/gLiveSupport/src/ScratchpadWindow.cxx +++ b/livesupport/src/products/gLiveSupport/src/ScratchpadWindow.cxx @@ -607,11 +607,11 @@ ScratchpadWindow :: addItem(Ptr::Ref id) Ptr::Ref ScratchpadWindow :: contents(void) throw () { - std::ostringstream contentsStream; - Gtk::TreeModel::const_iterator it; + std::ostringstream contentsStream; + Gtk::TreeModel::const_reverse_iterator it; - for (it = treeModel->children().begin(); - it != treeModel->children().end(); ++it) { + for (it = treeModel->children().rbegin(); + it != treeModel->children().rend(); ++it) { Gtk::TreeRow row = *it; Ptr::Ref playable = row[modelColumns.playableColumn]; contentsStream << playable->getId()->getId() << " ";