Side_position::get_direction (Grob*me)
{
SCM d = me->get_grob_property ("direction");
- if (isdir_b (d))
- return to_dir (d) ? to_dir (d) : DOWN;
+ if (isdir_b (d) && to_dir (d))
+ return to_dir (d);
- Direction relative_dir = UP;
+ Direction relative_dir = Direction (1);
SCM reldir = me->get_grob_property ("side-relative-direction"); // should use a lambda.
if (isdir_b (reldir))
{
(Script . (
(molecule-callback . ,Script::brew_molecule)
(X-offset-callbacks . (,Side_position::centered_on_parent))
+ (after-line-breaking-callback . ,Script::after_line_breaking)
(meta . ,(element-description "Script" script-interface side-position-interface font-interface))
))