diff options
Diffstat (limited to 'libs/pbd/pbd/properties.h')
-rw-r--r-- | libs/pbd/pbd/properties.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/libs/pbd/pbd/properties.h b/libs/pbd/pbd/properties.h index 274dfffd9c..8d2f465ebf 100644 --- a/libs/pbd/pbd/properties.h +++ b/libs/pbd/pbd/properties.h @@ -122,8 +122,10 @@ protected: {} void set (T const& v) { - _old = _current; - _have_old = true; + if (!_have_old) { + _old = _current; + _have_old = true; + } _current = v; } |