# HG changeset patch # User Santeri Piippo # Date 1382139188 -10800 # Node ID b855542061553631491f7cd389d4495c3e393210 # Parent 37d5da2f188e047b12b1badcbb6fcc932534ca4e changeProperty(): don't change the property if the value would not change, this should save some procecssing.. diff -r 37d5da2f188e -r b85554206155 src/ldtypes.cpp --- a/src/ldtypes.cpp Sat Oct 19 01:22:11 2013 +0300 +++ b/src/ldtypes.cpp Sat Oct 19 02:33:08 2013 +0300 @@ -667,6 +667,9 @@ template static void changeProperty (LDObject* obj, T* ptr, const T& val) { long idx; + if (*ptr == val) + return; + if (obj->file() && (idx = obj->getIndex()) != -1) { str before = obj->raw(); *ptr = val;