]> git.pld-linux.org Git - packages/libreoffice.git/blob - openoffice-gui-ft-pt-not-pixel.patch
- DON'T hardcode java paths!
[packages/libreoffice.git] / openoffice-gui-ft-pt-not-pixel.patch
1 Index: vcl/unx/source/gdi/dtint.cxx
2 ===================================================================
3 RCS file: /cvs/gsl/vcl/unx/source/gdi/dtint.cxx,v
4 retrieving revision 1.16
5 diff -u -p -u -r1.16 dtint.cxx
6 --- vcl/unx/source/gdi/dtint.cxx        28 May 2003 12:33:47 -0000      1.16
7 +++ vcl/unx/source/gdi/dtint.cxx        10 Jun 2003 14:17:38 -0000
8 @@ -229,19 +229,8 @@ Font DtIntegrator::parseFont( const Byte
9          xub_StrLen nIndex = nPos2;
10          ByteString aToken = rLine.GetToken( 1, ',', nIndex );
11          if( aToken.Len() )
12 -        {
13 -            int nPixelHeight = aToken.ToInt32();
14 -            long nDPIX, nDPIY;
15 -            long nDispDPIY = mpSalDisplay->GetResolution().B();
16 -            mpSalDisplay->GetScreenFontResolution( nDPIX, nDPIY );
17 -            int nHeight = nPixelHeight * nDispDPIY / nDPIY;
18 -            // allow for rounding in back conversion (at SetFont)
19 -            while( (nHeight * nDPIY / nDispDPIY) > nPixelHeight )
20 -                nHeight--;
21 -            while( (nHeight * nDPIY / nDispDPIY) < nPixelHeight )
22 -                nHeight++;
23 -            aFont.SetHeight( nHeight );
24 -        }
25 +           aFont.SetHeight( (long) OString(aToken).toDouble() );
26 +
27          while( nIndex != STRING_NOTFOUND )
28          {
29              aToken = rLine.GetToken( 0, ',', nIndex );
This page took 0.027637 seconds and 3 git commands to generate.