Commit aef05658 authored by Will Schroeder's avatar Will Schroeder
Browse files

BUG:Make sure correct observer is set (must be consistent with requested cursor shape)

parent fec70028
......@@ -20,7 +20,7 @@
#include "vtkInteractorObserver.h"
#include <vtkstd/map>
vtkCxxRevisionMacro(vtkObserverMediator, "1.3");
vtkCxxRevisionMacro(vtkObserverMediator, "1.4");
vtkStandardNewMacro(vtkObserverMediator);
// PIMPL the map representing the observer (key) to cursor request
......@@ -119,7 +119,7 @@ int vtkObserverMediator::RequestCursorShape(vtkInteractorObserver *w, int reques
iter = this->ObserverMap->end();
--iter; //this is the observer with the highest priority
this->Interactor->GetRenderWindow()->SetCurrentCursor((*iter).second);
this->CurrentObserver = w;
this->CurrentObserver = (*iter).first;
this->CurrentCursorShape = (*iter).second;
return 1;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment