OLD | NEW |
1 /* | 1 /* |
2 This file is part of LilyPond, the GNU music typesetter. | 2 This file is part of LilyPond, the GNU music typesetter. |
3 | 3 |
4 Copyright (C) 1997--2019 Han-Wen Nienhuys <hanwen@xs4all.nl> | 4 Copyright (C) 1997--2019 Han-Wen Nienhuys <hanwen@xs4all.nl> |
5 Jan Nieuwenhuizen <janneke@gnu.org> | 5 Jan Nieuwenhuizen <janneke@gnu.org> |
6 | 6 |
7 LilyPond is free software: you can redistribute it and/or modify | 7 LilyPond is free software: you can redistribute it and/or modify |
8 it under the terms of the GNU General Public License as published by | 8 it under the terms of the GNU General Public License as published by |
9 the Free Software Foundation, either version 3 of the License, or | 9 the Free Software Foundation, either version 3 of the License, or |
10 (at your option) any later version. | 10 (at your option) any later version. |
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
87 spanners_[i]->set_bound (RIGHT, bar_); | 87 spanners_[i]->set_bound (RIGHT, bar_); |
88 } | 88 } |
89 | 89 |
90 /* | 90 /* |
91 lines may only be broken if there is a barline in all staves | 91 lines may only be broken if there is a barline in all staves |
92 */ | 92 */ |
93 void | 93 void |
94 Bar_engraver::stop_translation_timestep () | 94 Bar_engraver::stop_translation_timestep () |
95 { | 95 { |
96 if (!bar_) | 96 if (!bar_) |
97 context ()->get_score_context ()->set_property ("forbidBreak", SCM_BOOL_T); | 97 find_score_context ()->set_property ("forbidBreak", SCM_BOOL_T); |
98 | 98 |
99 bar_ = 0; | 99 bar_ = 0; |
100 spanners_.clear (); | 100 spanners_.clear (); |
101 } | 101 } |
102 | 102 |
103 void | 103 void |
104 Bar_engraver::acknowledge_end_spanner (Grob_info gi) | 104 Bar_engraver::acknowledge_end_spanner (Grob_info gi) |
105 { | 105 { |
106 Grob *g = gi.grob (); | 106 Grob *g = gi.grob (); |
107 | 107 |
(...skipping 18 matching lines...) Expand all Loading... |
126 | 126 |
127 /* create */ | 127 /* create */ |
128 "BarLine ", | 128 "BarLine ", |
129 | 129 |
130 /* read */ | 130 /* read */ |
131 "whichBar ", | 131 "whichBar ", |
132 | 132 |
133 /* write */ | 133 /* write */ |
134 "forbidBreak " | 134 "forbidBreak " |
135 ); | 135 ); |
OLD | NEW |