From b960071ff03d4ec5ac5fde276fc5750b25fe8847 Mon Sep 17 00:00:00 2001 From: fgerlits Date: Fri, 29 Apr 2005 14:17:16 +0000 Subject: [PATCH] fixed bug #891 --- .../products/gLiveSupport/src/GLiveSupport.cxx | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/livesupport/products/gLiveSupport/src/GLiveSupport.cxx b/livesupport/products/gLiveSupport/src/GLiveSupport.cxx index b86afafe8..4cb6d6eda 100644 --- a/livesupport/products/gLiveSupport/src/GLiveSupport.cxx +++ b/livesupport/products/gLiveSupport/src/GLiveSupport.cxx @@ -22,7 +22,7 @@ Author : $Author: fgerlits $ - Version : $Revision: 1.33 $ + Version : $Revision: 1.34 $ Location : $Source: /home/paul/cvs2svn-livesupport/newcvsrepo/livesupport/products/gLiveSupport/src/GLiveSupport.cxx,v $ ------------------------------------------------------------------------------*/ @@ -527,6 +527,15 @@ LiveSupport :: GLiveSupport :: GLiveSupport :: addToScratchPad(Ptr::Ref playable) throw () { + PlayableList::iterator it; + for (it = scratchpadContents->begin(); it != scratchpadContents->end(); + ++it) { + Ptr::Ref listElement = *it; + if (*listElement->getId() == *playable->getId()) { + scratchpadContents->erase(it); + break; + } + } scratchpadContents->push_front(playable); masterPanel->updateScratchpadWindow(); }