]> git.donarmstrong.com Git - lilypond.git/blobdiff - lily/grob-array.cc
Run `make grand-replace'.
[lilypond.git] / lily / grob-array.cc
index f9982f15149339041b4b9faabc2e7b280bbc4afb..281ae61e27cd71aa55342e6400fc8f3eb317ed09 100644 (file)
@@ -3,7 +3,7 @@
 
   source file of the GNU LilyPond music typesetter
 
-  (c) 2005--2006 Han-Wen Nienhuys <hanwen@xs4all.nl>
+  (c) 2005--2008 Han-Wen Nienhuys <hanwen@xs4all.nl>
 */
 
 #include "grob-array.hh"
@@ -83,8 +83,11 @@ Grob_array::clear ()
 }
 
 void
-Grob_array::uniq ()
+Grob_array::remove_duplicates ()
 {
+  assert (!ordered_);
+  
+  vector_sort (grobs_, less<Grob*> ());
   ::uniq (grobs_);
 }