lilypond-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: segfault on cross-staff slurs


From: Han-Wen Nienhuys
Subject: Re: segfault on cross-staff slurs
Date: Sat, 03 Jun 2006 12:25:16 +0200
User-agent: Thunderbird 1.5.0.2 (X11/20060501)

Joe Neeman schreef:
The new figured-bass-position-engraver segfaults on cross-staff slurs
(typography-demo.ly). This patch fixes the crash, but I don't know how
it will affect the new functionality.



------------------------------------------------------------------------

Index: lily/figured-bass-position-engraver.cc
===================================================================
RCS file: /sources/lilypond/lilypond/lily/figured-bass-position-engraver.cc,v
retrieving revision 1.3
diff -u -r1.3 figured-bass-position-engraver.cc
--- lily/figured-bass-position-engraver.cc      3 Jun 2006 01:29:01 -0000       
1.3
+++ lily/figured-bass-position-engraver.cc      3 Jun 2006 05:02:14 -0000
@@ -84,7 +84,8 @@
 {
   vector<Grob*>::iterator i = find (span_support_.begin (), span_support_.end 
(),
                                    info.grob ());
-  span_support_.erase (i);
+  if (i < span_support_.end ())
+    span_support_.erase (i);
 }

thanks. applied.

This means I have to redesign things for a proper solution, though.

--
Han-Wen Nienhuys - address@hidden - http://www.xs4all.nl/~hanwen

LilyPond Software Design
 -- Code for Music Notation
http://www.lilypond-design.com





reply via email to

[Prev in Thread] Current Thread [Next in Thread]