X-Git-Url: https://git.donarmstrong.com/lilypond.git?a=blobdiff_plain;f=lily%2Fclef-item.cc;h=75191ca3449513f3e368bfa8ddbc85e275d632d1;hb=3e69ea97654a3992b7411b2979c20fdc18845e2c;hp=a2d300f516a8b37018a3bdf5e3a4e6553354301f;hpb=59eed8645ca5c012345e9343eaf80cba65e7efb0;p=lilypond.git diff --git a/lily/clef-item.cc b/lily/clef-item.cc index a2d300f516..75191ca344 100644 --- a/lily/clef-item.cc +++ b/lily/clef-item.cc @@ -27,7 +27,10 @@ Clef_item::do_pre_processing() if (break_status_dir() != RIGHT && style != "fullSizeChanges") symbol_ += "_change"; if (style == "transparent") - set_elt_property (transparent_scm_sym, SCM_BOOL_T); + { + set_elt_property (transparent_scm_sym, SCM_BOOL_T); + dim_cache_[X_AXIS].set_empty (true); + } } /* @@ -61,7 +64,7 @@ Clef_item::do_add_processing () 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]; + Real r = do_height ()[d] - g->extent (Y_AXIS)[-d]; g->dim_cache_[Y_AXIS].set_offset (r); SCM my_vis = get_elt_property (visibility_lambda_scm_sym);