]> git.donarmstrong.com Git - lilypond.git/commitdiff
ly_deep_copy did not actually copy vectors
authorDavid Kastrup <dak@gnu.org>
Wed, 27 Feb 2013 15:07:56 +0000 (16:07 +0100)
committerDavid Kastrup <dak@gnu.org>
Tue, 5 Mar 2013 21:35:14 +0000 (22:35 +0100)
Or actually, it copied them, threw the copy away and returned the original.

lily/lily-guile.cc

index 1ad0635d3653456a0f5e600246a20d7b5658205c..eb78d8bbfde1e3e5e60e6e7c8856eea4cf31b7ec 100644 (file)
@@ -365,6 +365,7 @@ ly_deep_copy (SCM src)
           SCM si = scm_from_int (i);
           scm_vector_set_x (nv, si, ly_deep_copy (scm_vector_ref (src, si)));
         }
+      return nv;
     }
   return src;
 }