- Score_element *me = unsmob_element (element_smob);
- Axis a = (Axis) gh_scm2int (axis);
- assert (a == Y_AXIS);
- me = me->parent_l (X_AXIS);
- SCM dots = me->get_elt_property ("dots");
- do_shifts (dots);
- return gh_double2scm (0.0);
+ Dot_configuration new_cfg;
+ int offset = 0;
+
+ if (d > 0)
+ {
+ for (Dot_configuration::const_iterator i (cfg.begin ());
+ i != cfg.end (); i++)
+ {
+ int p = i->first;
+ if (p == k)
+ {
+ if (Staff_symbol_referencer::on_staffline (i->second.dot_, p))
+ p += d ;
+ else
+ p += 2* d;
+
+ offset = 2*d;
+
+ new_cfg[p] = i->second;
+ }
+ else
+ {
+ if (new_cfg.find (p) == new_cfg.end ())
+ {
+ offset =0;
+ }
+ new_cfg[p + offset] = i->second;
+ }
+ }
+ }
+ else
+ {
+ Dot_configuration::const_iterator i (cfg.end ());
+ do
+ {
+ i --;
+
+ int p = i->first;
+ if (p == k)
+ {
+ if (Staff_symbol_referencer::on_staffline (i->second.dot_, p))
+ p += d ;
+ else
+ p += 2* d;
+
+ offset = 2*d;
+
+ new_cfg[p] = i->second;
+ }
+ else
+ {
+ if (new_cfg.find (p) == new_cfg.end ())
+ {
+ offset =0;
+ }
+
+ new_cfg[p + offset] = i->second;
+ }
+ }
+ while (i != cfg.begin ());
+ }
+
+ return new_cfg;