- {
- if (Item *victim = dynamic_cast<Item*> (info.grob ()))
- {
- Engraver *eng = dynamic_cast<Engraver*> (info.origin_translator ());
- Item *paren = eng->make_item ("ParenthesesItem", victim->self_scm ());
-
- Pointer_group_interface::add_grob (paren, ly_symbol2scm ("elements"), victim);
-
- Real size = robust_scm2double (paren->get_property ("font-size"), 0.0)
- + robust_scm2double (victim->get_property ("font-size"), 0.0);
- paren->set_property ("font-size", scm_from_double (size));
-
- /*
- TODO?
-
- enlarge victim to allow for parentheses space?
- */
- }
- else
- {
- programming_error ("Don't know how to parenthesize spanners.");
- }
- }
+ {
+ if (Item *victim = dynamic_cast<Item *> (info.grob ()))
+ {
+ Engraver *eng = dynamic_cast<Engraver *> (info.origin_translator ());
+ Item *paren = eng->make_item ("ParenthesesItem", victim->self_scm ());
+ Pointer_group_interface::add_grob (paren, ly_symbol2scm ("elements"), victim);
+
+ paren->set_parent (victim, Y_AXIS);
+
+ Real size = robust_scm2double (paren->get_property ("font-size"), 0.0)
+ + robust_scm2double (victim->get_property ("font-size"), 0.0);
+ paren->set_property ("font-size", scm_from_double (size));
+
+ /*
+ TODO?
+
+ enlarge victim to allow for parentheses space?
+ */
+ }
+ else
+ {
+ info.grob ()->warning ("Don't know how to parenthesize spanners.");
+ }
+ }