]> git.donarmstrong.com Git - lilypond.git/blobdiff - lily/slur-scoring.cc
(Invoking lilypond-book):
[lilypond.git] / lily / slur-scoring.cc
index 6371082b077676783487be3943a13b874407c919..ef5002538b1014f7402d23338d1a10203bdb3cd7 100644 (file)
@@ -395,6 +395,7 @@ Slur_score_state::get_best_curve ()
        }
       else
        {
+         programming_error ("No optimal slur found. Guessing 0.");
          total = "no sol?";
        }
   
@@ -403,12 +404,6 @@ Slur_score_state::get_best_curve ()
     }
 #endif
 
-  if (opt_idx < 0)
-    {
-      opt_idx = 0;
-      programming_error ("No optimal slur found. Guessing 0.");
-    }
-  
   return configurations_[opt_idx]->curve_;
 }