File tree Expand file tree Collapse file tree 3 files changed +6
-11
lines changed Expand file tree Collapse file tree 3 files changed +6
-11
lines changed Original file line number Diff line number Diff line change @@ -536,28 +536,23 @@ void Harmony::layout()
536
536
Text::layout1 ();
537
537
else {
538
538
// textStyle().layout(this);
539
- if (!parent ()) {
540
- setPos (QPointF (0.0 , 0.0 ));
541
- return ;
542
- }
543
-
544
539
QRectF bb;
545
540
foreach (const TextSegment* ts, textList)
546
541
bb |= ts->boundingRect ().translated (ts->x , ts->y );
547
542
setbbox (bb);
548
543
}
549
- if (parent () == 0 ) { // for use in palette
544
+ if (! parent ()) { // for use in palette
550
545
setPos (QPointF ());
551
546
return ;
552
547
}
553
548
554
- qreal yy;
549
+ qreal yy = 0.0 ;
555
550
if (parent ()->type () == SEGMENT) {
556
551
Measure* m = static_cast <Measure*>(parent ()->parent ());
557
552
yy = track () < 0 ? 0.0 : m->system ()->staff (staffIdx ())->y ();
558
- yy -= ( bbox (). height () + score ()->styleP (ST_harmonyY) );
553
+ yy += score ()->styleP (ST_harmonyY);
559
554
}
560
- else {
555
+ else if ( parent ()-> type () == FRET_DIAGRAM) {
561
556
yy = score ()->styleP (ST_harmonyFretDist);
562
557
}
563
558
setPos (QPointF (0.0 , yy));
Original file line number Diff line number Diff line change @@ -484,7 +484,7 @@ StyleData::StyleData()
484
484
485
485
StyleVal (ST_pedalY, Spatium (8 )),
486
486
StyleVal (ST_trillY, Spatium (-1 )),
487
- StyleVal (ST_harmonyY, Spatium (-4 )),
487
+ StyleVal (ST_harmonyY, Spatium (-2.5 )),
488
488
StyleVal (ST_harmonyFretDist, Spatium (-1.5 )),
489
489
490
490
StyleVal (ST_showPageNumber, true ),
Original file line number Diff line number Diff line change @@ -3607,7 +3607,7 @@ p, li { white-space: pre-wrap; }
3607
3607
<double >10000.000000000000000</double >
3608
3608
</property >
3609
3609
<property name =" singleStep" >
3610
- <double >1 .500000000000000</double >
3610
+ <double >0 .500000000000000</double >
3611
3611
</property >
3612
3612
<property name =" value" >
3613
3613
<double >-4.000000000000000</double >
You can’t perform that action at this time.
0 commit comments