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 | 5 |
6 LilyPond is free software: you can redistribute it and/or modify | 6 LilyPond is free software: you can redistribute it and/or modify |
7 it under the terms of the GNU General Public License as published by | 7 it under the terms of the GNU General Public License as published by |
8 the Free Software Foundation, either version 3 of the License, or | 8 the Free Software Foundation, either version 3 of the License, or |
9 (at your option) any later version. | 9 (at your option) any later version. |
10 | 10 |
(...skipping 140 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
151 return true; | 151 return true; |
152 } | 152 } |
153 | 153 |
154 bool | 154 bool |
155 Item::pure_is_visible (int start, int end) const | 155 Item::pure_is_visible (int start, int end) const |
156 { | 156 { |
157 SCM vis = get_property ("break-visibility"); | 157 SCM vis = get_property ("break-visibility"); |
158 if (scm_is_vector (vis)) | 158 if (scm_is_vector (vis)) |
159 { | 159 { |
160 int pos = 1; | 160 int pos = 1; |
161 int pc_rank = Paper_column::get_rank (get_column ()); | 161 int pc_rank = get_column ()->get_rank (); |
162 if (pc_rank == start) | 162 if (pc_rank == start) |
163 pos = 2; | 163 pos = 2; |
164 else if (pc_rank == end) | 164 else if (pc_rank == end) |
165 pos = 0; | 165 pos = 0; |
166 return to_boolean (scm_vector_ref (vis, scm_from_int (pos))); | 166 return to_boolean (scm_vector_ref (vis, scm_from_int (pos))); |
167 } | 167 } |
168 return true; | 168 return true; |
169 } | 169 } |
170 | 170 |
171 bool | 171 bool |
(...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
269 " end-of-line-invisible no yes yes\n" | 269 " end-of-line-invisible no yes yes\n" |
270 " center-invisible yes no yes\n" | 270 " center-invisible yes no yes\n" |
271 "@end example", | 271 "@end example", |
272 | 272 |
273 /* properties */ | 273 /* properties */ |
274 "break-visibility " | 274 "break-visibility " |
275 "extra-spacing-height " | 275 "extra-spacing-height " |
276 "extra-spacing-width " | 276 "extra-spacing-width " |
277 "non-musical " | 277 "non-musical " |
278 ); | 278 ); |
OLD | NEW |