@@ -3572,20 +3572,13 @@ bool TRead::readProperties(SLine* l, XmlReader& e, ReadContext& ctx)
35723572 ls->setVisible (l->visible ());
35733573 } else if (tag == " length" ) {
35743574 l->setLen (e.readDouble ());
3575- } else if (tag == " diagonal" ) {
3576- l->setDiagonal (e.readInt ());
3577- } else if (tag == " anchor" ) {
3578- l->setAnchor (SLine::Anchor (e.readInt ()));
3579- } else if (tag == " lineWidth" ) {
3580- l->setLineWidth (Spatium (e.readDouble ()));
3575+ } else if (TRead::readProperty (l, tag, e, ctx, Pid::DIAGONAL)) {
3576+ } else if (TRead::readProperty (l, tag, e, ctx, Pid::ANCHOR)) {
3577+ } else if (TRead::readProperty (l, tag, e, ctx, Pid::LINE_WIDTH)) {
35813578 } else if (TRead::readProperty (l, tag, e, ctx, Pid::LINE_STYLE)) {
3582- } else if (tag == " dashLineLength" ) {
3583- l->setDashLineLen (e.readDouble ());
3584- } else if (tag == " dashGapLength" ) {
3585- l->setDashGapLen (e.readDouble ());
3586- } else if (tag == " lineColor" ) {
3587- l->setLineColor (e.readColor ());
3588- } else if (tag == " color" ) {
3579+ } else if (TRead::readProperty (l, tag, e, ctx, Pid::DASH_LINE_LEN)) {
3580+ } else if (TRead::readProperty (l, tag, e, ctx, Pid::DASH_GAP_LEN)) {
3581+ } else if (tag == " lineColor" || tag == " color" ) {
35893582 l->setLineColor (e.readColor ());
35903583 } else if (!readProperties (static_cast <Spanner*>(l), e, ctx)) {
35913584 return false ;
0 commit comments