X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=lib%2FEditorGraphicBBS%2FbbsKernelEditorGraphic%2FObservable.cxx;h=cf21b32e9990b87f06c58d19d23c45c006d67203;hb=e628a3dc4645cb347ebf060b145e626cc31a65f4;hp=a8de6d834f5ea724976a19cdd2b214acedca821a;hpb=cef73d418644dcb545c7731df11c54146fe82174;p=bbtkGEditor.git diff --git a/lib/EditorGraphicBBS/bbsKernelEditorGraphic/Observable.cxx b/lib/EditorGraphicBBS/bbsKernelEditorGraphic/Observable.cxx index a8de6d8..cf21b32 100644 --- a/lib/EditorGraphicBBS/bbsKernelEditorGraphic/Observable.cxx +++ b/lib/EditorGraphicBBS/bbsKernelEditorGraphic/Observable.cxx @@ -59,15 +59,14 @@ namespace bbtk //========================================================================= - void Observable::notifyObservers() + void Observable::notifyObservers(int idController,int command) { if(_changed) { int i; - for(i=0;i<_observers.size();i++) { - _observers[i]->update(); + _observers[i]->update(idController,command); } _changed=false; }