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() << " ";