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

(-)vcl/source/gdi/outdev3.cxx (-3 / +2 lines)
Lines 6800-6809 Link Here
6800
    else if ( nStyle & TEXT_DRAW_CENTER )
6800
    else if ( nStyle & TEXT_DRAW_CENTER )
6801
    {
6801
    {
6802
        aRect.Left() += (nWidth-nMaxWidth)/2;
6802
        aRect.Left() += (nWidth-nMaxWidth)/2;
6803
        aRect.Right() = aRect.Left()+nMaxWidth-1;
6803
        aRect.Right() = aRect.Left()+nMaxWidth;
6804
    }
6804
    }
6805
    else
6805
    else
6806
        aRect.Right() = aRect.Left()+nMaxWidth-1;
6806
        aRect.Right() = aRect.Left()+nMaxWidth;
6807
6807
6808
    if ( nStyle & TEXT_DRAW_BOTTOM )
6808
    if ( nStyle & TEXT_DRAW_BOTTOM )
6809
        aRect.Top() = aRect.Bottom()-(nTextHeight*nLines)+1;
6809
        aRect.Top() = aRect.Bottom()-(nTextHeight*nLines)+1;
Lines 6815-6821 Link Here
6815
    else
6815
    else
6816
        aRect.Bottom() = aRect.Top()+(nTextHeight*nLines)-1;
6816
        aRect.Bottom() = aRect.Top()+(nTextHeight*nLines)-1;
6817
6817
6818
    aRect.Right()++; // #99188# get rid of rounding problems when using this rect later
6819
    return aRect;
6818
    return aRect;
6820
}
6819
}
6821
6820

Return to issue 123192