Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(101)

Unified Diff: lily/staff-symbol.cc

Issue 6109046: Macro for(UP_and_DOWN) and 3 similar. (issue 2491) (Closed) Base URL: http://git.savannah.gnu.org/gitweb/?p=lilypond.git/trunk/
Patch Set: Corrected GNU style in for (*_and_* (d)) macros. Created 11 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « lily/spanner.cc ('k') | lily/stem.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lily/staff-symbol.cc
diff --git a/lily/staff-symbol.cc b/lily/staff-symbol.cc
index 98627e5783f812ca3c396c6d1feacb636b60a3c7..3b0eef00b5f278e1c52000b3adc2a730d9a24007 100644
--- a/lily/staff-symbol.cc
+++ b/lily/staff-symbol.cc
@@ -50,8 +50,7 @@ Staff_symbol::print (SCM smob)
Real t = me->layout ()->get_dimension (ly_symbol2scm ("line-thickness"));
t *= robust_scm2double (me->get_property ("thickness"), 1.0);
- Direction d = LEFT;
- do
+ for (LEFT_and_RIGHT (d))
{
SCM width_scm = me->get_property ("width");
if (d == RIGHT && scm_is_number (width_scm))
@@ -75,7 +74,6 @@ Staff_symbol::print (SCM smob)
span_points[d] -= d * t / 2;
}
- while (flip (&d) != LEFT);
Stencil m;
« no previous file with comments | « lily/spanner.cc ('k') | lily/stem.cc » ('j') | no next file with comments »

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b