src/ldtypes.cpp

changeset 521
b85554206155
parent 516
d3373bc7ca3b
child 522
afa691788bdb
--- 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<class T> 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;

mercurial