- Molecule l1 = Lookup::line (lt, Offset(0, 0), Offset (0, dy));
- Molecule bottom = Lookup::line (lt, Offset(0, 0), Offset (x, 0));
- Molecule top = Lookup::line (lt, Offset(0, dy), Offset (x, dy));
- Molecule mol;
- mol.add_molecule (l1);
- mol.add_molecule (bottom);
- mol.add_molecule (top);
- mol.translate_axis (heads[LEFT] - sp/2.0, Y_AXIS);
- return mol.smobbed_copy();
+ Stencil mol (Lookup::bracket (Y_AXIS, Interval (0, dy), lt, x, lt));
+ mol.translate_axis (heads[LEFT] - sp / 2.0, Y_AXIS);
+ return mol.smobbed_copy ();