]> git.donarmstrong.com Git - lilypond.git/blobdiff - lily/bar-reg.cc
release: 0.0.45
[lilypond.git] / lily / bar-reg.cc
index c28443df62571a5884d0aaf2a0e53b8d51fc5b25..93334497cf6c1a23b3ad1028b9e275e65dd5c508 100644 (file)
@@ -23,9 +23,11 @@ Bar_register::try_request(Request*r_l)
     Command_req* c_l = r_l->command();
     if (!c_l|| !c_l->bar()) 
        return false;
-
-    assert(!bar_req_l_);
-    bar_req_l_ = c_l->bar();
+    Bar_req  * b= c_l->bar();
+    if (bar_req_l_ && bar_req_l_->compare(*b))
+       return false;
+    
+    bar_req_l_ = b;
 
     return true;
 }
@@ -44,6 +46,8 @@ Bar_register::process_requests()
     }
 }
 
+
+
 void
 Bar_register::split_bar(Bar *& pre, Bar * no, Bar * &post)
 {
@@ -77,3 +81,7 @@ Bar_register::post_move_processing()
     bar_req_l_ = 0;
     bar_p_ =0;
 }
+
+IMPLEMENT_STATIC_NAME(Bar_register);
+
+