]> git.donarmstrong.com Git - lilypond.git/blobdiff - lily/direction.cc
release: 0.1.58
[lilypond.git] / lily / direction.cc
index a0e0e14a5010f92b056fa645398eb925c6247846..802418fce5ef7371d596ffc953d63e3e606499a8 100644 (file)
 
 String direction_str (Direction d, Axis a)
 {
-  if (!d)
-    return "center";
+  String s("center");
   if (a == Y_AXIS)
     {
-       return d == UP ? "up" : "down";
+       s =( d == UP ? "up" : "down");
     }
   else if (a == X_AXIS)
     {
-      return d == LEFT ? "left" : "right" ;
+      s = (d == LEFT ? "left" : "right" );
     }
+  return s;
 }