source file of the GNU LilyPond music typesetter
- (c) 1996,1997 Han-Wen Nienhuys <hanwen@stack.nl>
+ (c) 1996, 1997--1998 Han-Wen Nienhuys <hanwen@cs.uu.nl>
*/
#include "debug.hh"
bool
Script_def::do_equal_b (General_script_def const *g) const
{
- Script_def const * c = (Script_def const*) g;
- return (symidx_str_ == c->symidx_str_ &&
+ Script_def const * c = dynamic_cast<Script_def const*> (g);
+ return c&& (symidx_str_ == c->symidx_str_ &&
rel_stem_dir_ == c->rel_stem_dir_&&
staff_dir_ == c->staff_dir_&&
invertsym_b_ == c->invertsym_b_);
Script_def::get_atom (Paper_def *p , Direction d) const
{
String preidx_str ="";
- if (invertsym_b_&& d < 0)
- preidx_str = "-";
+ if (invertsym_b_)
+ preidx_str = (d < 0)? "d" : "u";
- return p->lookup_l()->script (preidx_str + symidx_str_);
+ return p->lookup_l(0)->script (preidx_str + symidx_str_);
}
-IMPLEMENT_IS_TYPE_B1(Script_def,General_script_def);
+
int
Script_def::priority_i() const