]> git.donarmstrong.com Git - lilypond.git/commitdiff
lilypond-0.0.67
authorfred <fred>
Sun, 24 Mar 2002 19:45:00 +0000 (19:45 +0000)
committerfred <fred>
Sun, 24 Mar 2002 19:45:00 +0000 (19:45 +0000)
lily/p-score.cc

index 6bec375634935a8ca488ffef4f8804a79468318b..d6c4a63940af6cbffa170dbf530fa3aadf85e987 100644 (file)
@@ -243,8 +243,11 @@ PScore::breakable_col_range(PCol*l,PCol*r)const
 
     PCursor<PCol*> start(l ? find_col(l)+1 : cols.top() );
     PCursor<PCol*> stop(r ? find_col(r) : cols.bottom());
-  
-    while ( start < stop ) {
+
+    /*
+      ugh! windows-suck-suck-suck.
+     */
+    while ( PCursor<PCol*>::compare(start,stop) < 0 ) {
        if (start->breakable_b())
            ret.push(start);
        start++;
@@ -260,7 +263,11 @@ PScore::col_range(PCol*l,PCol*r)const
     PCursor<PCol*> start(l ? find_col(l)+1 : cols.top() );
     PCursor<PCol*> stop(r ? find_col(r) : cols.bottom());
     ret.push(l);
-    while ( start < stop )
+    
+    /*
+      ugh! windows-suck-suck-suck.
+     */
+    while ( PCursor<PCol*>::compare(start,stop) < 0 )
        ret.push(start++);
     ret.push(r);
     return ret;
@@ -274,7 +281,10 @@ PScore::broken_col_range(PCol*l,PCol*r)const
     PCursor<PCol*> start(l ? find_col(l)+1 : cols.top() );
     PCursor<PCol*> stop(r ? find_col(r) : cols.bottom());
   
-    while ( start < stop ) {
+    /*
+      ugh! windows-suck-suck-suck.
+      */
+    while ( PCursor<PCol*>::compare(start,stop) < 0 ) {
        if (start->breakable_b() && !start->line_l_ )
            ret.push(start);
        start++;