]> git.pld-linux.org Git - packages/libreoffice.git/blob - openoffice-crash-mapmode.patch
- DON'T hardcode java paths!
[packages/libreoffice.git] / openoffice-crash-mapmode.patch
1 Index: vcl/source/gdi/mapmod.cxx
2 ===================================================================
3 RCS file: /cvs/gsl/vcl/source/gdi/mapmod.cxx,v
4 retrieving revision 1.1.1.1
5 diff -u -p -u -r1.1.1.1 mapmod.cxx
6 --- vcl/source/gdi/mapmod.cxx   18 Sep 2000 17:05:38 -0000      1.1.1.1
7 +++ vcl/source/gdi/mapmod.cxx   12 Sep 2003 16:51:13 -0000
8 @@ -144,6 +144,12 @@ static ImplMapMode* ImplGetStaticMapMode
9      static long aStaticImplMapModeAry[(MAP_LASTENUMDUMMY)*sizeof(ImplMapMode)/sizeof(long)];
10  #endif
11  
12 +       if( eUnit >= MAP_LASTENUMDUMMY )
13 +       {
14 +               DBG_ASSERTWARNING( bRelMap, "Completely bogus map unit" );
15 +        return ((ImplMapMode*)aStaticImplMapModeAry);
16 +       }
17 +
18      ImplMapMode* pImplMapMode = ((ImplMapMode*)aStaticImplMapModeAry)+eUnit;
19      if ( !pImplMapMode->mbSimple )
20      {
This page took 0.032864 seconds and 3 git commands to generate.