]> git.donarmstrong.com Git - lilypond.git/commitdiff
(register_stencil_head): opps, append
authorHan-Wen Nienhuys <hanwen@xs4all.nl>
Sat, 20 May 2006 19:54:42 +0000 (19:54 +0000)
committerHan-Wen Nienhuys <hanwen@xs4all.nl>
Sat, 20 May 2006 19:54:42 +0000 (19:54 +0000)
to cdr of static SCM object. Backportme.

ChangeLog
lily/beam.cc
lily/glissando-engraver.cc
lily/stencil-expression.cc
scm/output-socket.scm

index ee3afe6695db0689ab283e90020ee59c44fac611..fedb1c577c755cef9b84cbf2268e9b06a009ccea 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2006-05-20  Han-Wen Nienhuys  <hanwen@lilypond.org>
+
+       * lily/stencil-expression.cc (register_stencil_head): opps, append
+       to cdr of static SCM object. Backportme.
+
 2006-05-19  Graham Percival  <gpermus@gmail.com>
 
        * Documentation/user/README.txt, lilypond.tely, macros.itexi:
index 8089cb8270d92589178283256021adb52f6b98ed..1a4e0e36610b05d7fa4a0c1122c9c57ebae311f8 100644 (file)
@@ -820,7 +820,7 @@ Beam::calc_least_squares_positions (SCM smob, SCM posns)
   Interval pos (0,0);
   if (count < 1)
     return ly_interval2scm (pos);
-  
+
   vector<Real> x_posns;
   extract_grob_set (me, "stems", stems);
   Grob *commonx = common_refpoint_of_array (stems, me, X_AXIS);
@@ -832,7 +832,7 @@ Beam::calc_least_squares_positions (SCM smob, SCM posns)
   Grob *lvs = last_visible_stem (me);
 
   Interval ideal (Stem::get_stem_info (fvs).ideal_y_
-                 + fvs->relative_coordinate (commony, Y_AXIS) -my_y,
+                 + fvs->relative_coordinate (commony, Y_AXIS) - my_y,
                  Stem::get_stem_info (lvs).ideal_y_
                  + lvs->relative_coordinate (commony, Y_AXIS) - my_y);
 
@@ -1157,8 +1157,7 @@ Beam::set_stem_lengths (SCM smob)
 
   bool gap = false;
   Real thick = 0.0;
-  if (scm_is_number (me->get_property ("gap-count"))
-      && scm_to_int (me->get_property ("gap-count")))
+  if (robust_scm2int (me->get_property ("gap-count"), 0))
     {
       gap = true;
       thick = get_thickness (me);
index 1219ac65735ad92dd79b3ce76eddc44641d9b6a3..f5b0527bd170350bc634cb14a51d5bd64828636c 100644 (file)
@@ -24,8 +24,9 @@ public:
 protected:
   DECLARE_ACKNOWLEDGER (rhythmic_head);
   virtual void finalize ();
-  void stop_translation_timestep ();
   virtual bool try_music (Music *);
+
+  void stop_translation_timestep ();
   void process_music ();
 private:
   Spanner *line_;
index ae9127cfbbc851f7563cfe880f7bed8b7083e091..6e51ec9b9d5ec334340c0617affdaf61b269698d 100644 (file)
@@ -17,7 +17,7 @@ void register_stencil_head (SCM symbol)
     heads = scm_permanent_object (scm_cons (SCM_EOL, SCM_EOL));
   
   scm_set_object_property_x (symbol, ly_symbol2scm ("stencil-head?"), SCM_BOOL_T);
-  scm_set_cdr_x (heads,  scm_cons (symbol, heads));
+  scm_set_cdr_x (heads,  scm_cons (symbol, scm_cdr (heads)));
 }
 
 bool
index df37302650842f7efe4a0e40799d06af8aa416c7..c8a0fac3c7e872f5c7359951a33ac681956c11be 100644 (file)
@@ -11,6 +11,7 @@
 (define (dummy . rest)
   "")
 
+(display (ly:all-stencil-expressions))
 (for-each
  (lambda (x) 
    (module-define! (current-module)