]> git.donarmstrong.com Git - lilypond.git/blobdiff - lily/clef-item.cc
release: 1.1.42
[lilypond.git] / lily / clef-item.cc
index 75191ca3449513f3e368bfa8ddbc85e275d632d1..9eb8d1b26120d52119aeefde6f0678136f34b16f 100644 (file)
@@ -18,7 +18,7 @@
 void
 Clef_item::do_pre_processing()
 {
-  dim_cache_[Y_AXIS].translate (y_position_i_ * staff_line_leading_f () / 2.0);
+  dim_cache_[Y_AXIS]->translate (y_position_i_ * staff_line_leading_f () / 2.0);
   SCM style_sym =get_elt_property (style_scm_sym);
   String style;
   if (style_sym != SCM_BOOL_F)
@@ -29,7 +29,7 @@ Clef_item::do_pre_processing()
   if (style == "transparent")
     {
       set_elt_property (transparent_scm_sym, SCM_BOOL_T);
-      dim_cache_[X_AXIS].set_empty (true);
+      dim_cache_[X_AXIS]->set_empty (true);
     }
 }
 
@@ -60,12 +60,12 @@ Clef_item::do_add_processing ()
       
          g->text_str_ = "8";
          g->style_str_ = "italic";
-         g->dim_cache_[Y_AXIS].parent_l_ = &dim_cache_[Y_AXIS];
-         g->dim_cache_[X_AXIS].parent_l_ = &dim_cache_[X_AXIS];
+         g->dim_cache_[Y_AXIS]->parent_l_ = dim_cache_[Y_AXIS];
+         g->dim_cache_[X_AXIS]->parent_l_ = dim_cache_[X_AXIS];
          add_dependency (g);   // just to be sure.
 
          Real r = do_height ()[d] - g->extent (Y_AXIS)[-d];
-         g->dim_cache_[Y_AXIS].set_offset (r);
+         g->dim_cache_[Y_AXIS]->set_offset (r);
 
          SCM my_vis = get_elt_property (visibility_lambda_scm_sym);
          if (my_vis != SCM_BOOL_F)