# HG changeset patch # User Santeri Piippo # Date 1378284857 -10800 # Node ID 25747c37c7be18362a9547417ae7faaf97330caf # Parent 543a6696096f50826068712f3c556fb9e1480d7f For some reason, of all changesets, 4fb5763 made compiling subfiles extremely slow. WTF? Reverted the change to restore compilation speed. diff -r 543a6696096f -r 25747c37c7be src/ldtypes.cpp --- a/src/ldtypes.cpp Wed Sep 04 11:34:19 2013 +0300 +++ b/src/ldtypes.cpp Wed Sep 04 11:54:17 2013 +0300 @@ -647,8 +647,9 @@ // makes history stuff work out of the box. // ----------------------------------------------------------------------------- template void changeProperty (LDObject* obj, T* ptr, const T& val) { - if (obj->file()) { - long idx = obj->getIndex(); + long idx; + + if (obj->file() && (idx = obj->getIndex()) != -1) { str before = obj->raw(); *ptr = val; str after = obj->raw();