]> git.donarmstrong.com Git - lilypond.git/commitdiff
* lily/lookup.cc (triangle): translate by interval.
authorHan-Wen Nienhuys <hanwen@xs4all.nl>
Sun, 5 Sep 2004 21:48:30 +0000 (21:48 +0000)
committerHan-Wen Nienhuys <hanwen@xs4all.nl>
Sun, 5 Sep 2004 21:48:30 +0000 (21:48 +0000)
* scm/page-layout.scm (ly:optimal-page-breaks): typo.

* input/regression/quote-cyclic.ly (Module): new file.

* input/regression/key-signature-cancellation.ly (Module): new file.

ChangeLog
lily/lookup.cc
lily/measure-grouping-spanner.cc
scm/page-layout.scm

index 83b8310c148f7d418761681af7f4d26dd0fca649..7be0283c96a3b8b6c0f951c5eda991aa532e0ec0 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,9 @@
 2004-09-05  Han-Wen Nienhuys   <hanwen@xs4all.nl>
 
+       * lily/lookup.cc (triangle): translate by interval.
+
+       * VERSION (PACKAGE_NAME): release 2.3.14
+
        * Documentation/user/changing-defaults.itely (Page layout): add
        betweensystempadding
 
index 242260d676f68160d1ac20619617d8c524c43fe7..63c37a2c9788381be89e5d86b0453a575d2ab934 100644 (file)
@@ -695,7 +695,9 @@ Lookup::triangle (Interval iv, Real thick, Real protude)
                      scm_make_real (iv.length ()), 
                      scm_make_real (protude), SCM_UNDEFINED);
 
-  return Stencil (b, s);
+  Stencil stc (b, s);
+  stc.translate_axis (iv[LEFT], X_AXIS);
+  return stc;  
 }
 
 
index 96eecb164c0a9f825739a1049101527a3829d637..b603c766854d80078f10f817b015d1a75c7dd9f2 100644 (file)
@@ -20,9 +20,6 @@ Measure_grouping::print (SCM grob)
 {
   Spanner * me = dynamic_cast<Spanner*> (unsmob_grob (grob));
 
-  /*
-    TODO: robustify.
-   */
   SCM which = me->get_property ("style");
   Real height = robust_scm2double (me->get_property ("height"), 1);
 
@@ -30,15 +27,15 @@ Measure_grouping::print (SCM grob)
   Grob *common = me->get_bound (LEFT)->common_refpoint (me->get_bound (RIGHT),
                                                       X_AXIS);
 
-  Interval rext = me->get_bound (RIGHT)->extent (common, X_AXIS);
-  Real w =robust_relative_extent (me->get_bound (RIGHT),
-                                 common, X_AXIS).linear_combination (CENTER);
-    - me->get_bound (LEFT)->relative_coordinate (common, X_AXIS);
+  Real right_point = robust_relative_extent (me->get_bound (RIGHT),
+                                            common, X_AXIS).linear_combination (CENTER);
+  Real left_point = me->get_bound (LEFT)->relative_coordinate (common, X_AXIS);
 
-  Interval iv (0,w);
 
+  
+  Interval iv (left_point, right_point);
   Stencil m;
-
+  
   /*
     TODO: use line interface
    */
@@ -52,11 +49,12 @@ Measure_grouping::print (SCM grob)
     }
 
   m.align_to (Y_AXIS, DOWN);
+  m.translate_axis (- me->relative_coordinate (common, X_AXIS), X_AXIS);
   return m.smobbed_copy ();
 }
 
 ADD_INTERFACE (Measure_grouping,"measure-grouping-interface",
-              "This objectt indicates groups of beats. "
+              "This object indicates groups of beats. "
               "Valid choices for @code{style} are @code{bracket} and @code{triangle}.",
               "thickness style height");
 
index 5c2834b478216ed7e60c03d47c3e52576936a25e..c083f476d9ac9d0ad0e54f0b7f04265b5e937f2b 100644 (file)
@@ -311,7 +311,7 @@ is what have collected so far, and has ascending page numbers."
               (cdr  result)))
         )
 
-     (if #t ;; debug.
+     (if #f ;; debug.
         (begin
           (display (list "\n# systems: " no-systems
                          "\nreal-ext" real-extents "\nstaff-ext" staff-extents