+ if (!dir_)
+ dir_ = DOWN;
+}
+
+Real
+Text_item::get_position_f () const
+{
+ // uhuh, tdef/gdef?
+ if ( (tdef_p_->name () != Text_def::static_name ())
+ || ( ( (Text_def*)tdef_p_)->style_str_ != "finger"))
+ return Staff_side::get_position_f ();
+
+ if (!dir_)
+ {
+ warning (_ ("Text_item::get_position_f(): "
+ "somebody forgot to set my vertical direction, returning -20"));
+ return -20;
+ }
+
+ Interval v = support_extent ();
+ // add no extra: fingers should be just above note, no?
+ return v[dir_];