~s-cecilio/lomse/master

« back to all changes in this revision

Viewing changes to src/graphic_model/lomse_shape_tuplet.cpp

  • Committer: cecilios
  • Date: 2016-09-13 14:57:54 UTC
  • mto: This revision was merged to the branch mainline in revision 203.
  • Revision ID: git-v1:a5a4c98e1e43e6e727a2f2d22a87b01344b6239c
Draw nested tuplets

Show diffs side-by-side

added added

removed removed

Lines of Context:
110
110
    if (m_pShapeText)
111
111
    {
112
112
        m_uNumberWidth = m_pShapeText->get_width();
113
 
        uNumberHeight = m_pShapeText->get_height();
 
113
        uNumberHeight = 1.33f * m_pShapeText->get_height();
 
114
            //1.33 accounts for the fact that there is some space on top of the
 
115
            //number glyph
114
116
    }
115
117
 
116
118
    //determine number x position
122
124
    yShift += (m_fAbove ? -uNumberHeight : 0.0f);
123
125
    m_yNumber += yShift;
124
126
 
125
 
    //move nomber shape to its position
 
127
    //move number shape to its position
126
128
    if (m_pShapeText)
127
129
        m_pShapeText->set_origin(m_xNumber, m_yNumber);
128
130