View | Details | Raw Unified | Return to issue 81395
Collapse All | Expand All

(-)source/filter/eppt/eppt.cxx (-7 / +1 lines)
Lines 2417-2429 Link Here
2417
    if ( aParagraphObj.meLineSpacing == ::com::sun::star::beans::PropertyState_DIRECT_VALUE )
2417
    if ( aParagraphObj.meLineSpacing == ::com::sun::star::beans::PropertyState_DIRECT_VALUE )
2418
    {
2418
    {
2419
        sal_Int16 nLineSpacing = aParagraphObj.mnLineSpacing;
2419
        sal_Int16 nLineSpacing = aParagraphObj.mnLineSpacing;
2420
        if ( nLineSpacing > 0 ) // if nLinespacing is < 0 the linespacing is an absolute spacing
2420
        if ( nLineSpacing < 0 ) // if nLinespacing is < 0 the linespacing is an absolute spacing
2421
        {
2422
            const FontCollectionEntry* pDesc = rFontCollection.GetById( rCharLevel.mnFont );
2423
            if ( pDesc )
2424
                 nLineSpacing = (sal_Int16)( (double)nLineSpacing * pDesc->Scaling + 0.5 );
2425
        }
2426
        else
2427
        {
2421
        {
2428
            if ( rCharLevel.mnFontHeight > (sal_uInt16)( ((double)-nLineSpacing) * 0.001 * 72.0 / 2.54 ) ) // 1/100mm to point
2422
            if ( rCharLevel.mnFontHeight > (sal_uInt16)( ((double)-nLineSpacing) * 0.001 * 72.0 / 2.54 ) ) // 1/100mm to point
2429
            {
2423
            {

Return to issue 81395