diff options
Diffstat (limited to 'libs/rs/rsObjectBase.h')
-rw-r--r-- | libs/rs/rsObjectBase.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/libs/rs/rsObjectBase.h b/libs/rs/rsObjectBase.h index 01850f1e2511..c7cfb0e2e8b0 100644 --- a/libs/rs/rsObjectBase.h +++ b/libs/rs/rsObjectBase.h @@ -114,7 +114,10 @@ public: } ObjectBaseRef & operator= (const ObjectBaseRef &ref) { - return ObjectBaseRef(ref); + if (&ref != this) { + set(ref); + } + return *this; } ~ObjectBaseRef() { |