]> git.donarmstrong.com Git - lilypond.git/commitdiff
* lily/tie.cc (get_configuration): don't crash if left_dot is NULL.
authorHan-Wen Nienhuys <hanwen@xs4all.nl>
Thu, 8 Sep 2005 21:31:19 +0000 (21:31 +0000)
committerHan-Wen Nienhuys <hanwen@xs4all.nl>
Thu, 8 Sep 2005 21:31:19 +0000 (21:31 +0000)
* flower/include/real.hh: std::fabs too.

ChangeLog
flower/include/real.hh
lily/tie.cc

index 971bfd1f27faaf48a09cd67c307a1e647d1b5ac8..6534f18e440706d173cc64d85d9fe54bdd31dde1 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2005-09-08  Han-Wen Nienhuys  <hanwen@xs4all.nl>
+
+       * lily/tie.cc (get_configuration): don't crash if left_dot is NULL.
+
+       * flower/include/real.hh: std::fabs too.
+
 2005-09-08  Jan Nieuwenhuizen  <janneke@gnu.org>
 
        * Documentation/user/instrument-notation.itely (Entering lyrics):
index e44094f072d8a710c6fee34d234320832fe59b56..f4248f5d2fa8a2e26fedecd07c6104ddd7ee9c91 100644 (file)
@@ -18,6 +18,7 @@ extern const Real infinity_f;
 using namespace std;
 using std::isnan;
 using std::isinf;
+using std::fabs;
 
 template<class T> inline T abs (T x)
 {
index 6e62f424f0111ca404a9462ce87e58730e366070..5efe2d072d5bcfb16a1634bd48efe124deab7823 100644 (file)
@@ -261,7 +261,9 @@ Tie::get_configuration (Grob *me_grob, Grob *common,
     Avoid dot
    */
   Grob *left_dot = unsmob_grob (me->get_bound (LEFT)->get_object ("dot"));
-  int dot_pos = int (Staff_symbol_referencer::get_position (left_dot));
+  int dot_pos = dot_pos
+    ? int (Staff_symbol_referencer::get_position (left_dot))
+    : 0;
   if (left_dot
       && (staff_position == dot_pos
          || staff_position + dir == dot_pos))