Fix GPS activation on Windows.
Bug 1190, fix route-manager -> GPS activation on Windows (and probably a couple of unrelated issues). SGPropertyChangeCallback was missing a suitable copy-constructor, leading to incorrect behaviour on compilers where the operation is not elided. Such as MSVC.
This commit is contained in:
@@ -2056,6 +2056,13 @@ public:
|
||||
{
|
||||
_property->addChangeListener(this,initial);
|
||||
}
|
||||
|
||||
SGPropertyChangeCallback(const SGPropertyChangeCallback<T>& other) :
|
||||
_obj(other._obj), _callback(other._callback), _property(other._property)
|
||||
{
|
||||
_property->addChangeListener(this,false);
|
||||
}
|
||||
|
||||
virtual ~SGPropertyChangeCallback()
|
||||
{
|
||||
_property->removeChangeListener(this);
|
||||
|
||||
Reference in New Issue
Block a user