File tree 2 files changed +6
-2
lines changed
core/spatialindex/storagemanager
2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change 27
27
#include " RandomEvictionsBuffer.h"
28
28
29
29
#ifdef WIN32
30
- double drand48 (void ) { return (double ) rand () / (double ) RAND_MAX; }
30
+ // following two functions don't exist natively on windows so we'll emulate them
31
+ // drand48() returns real number x where 0 <= x < 1
32
+ // srand48() initializes generator
33
+
34
+ double drand48 (void ) { return (double ) rand () / (double ) (RAND_MAX+1 ); }
31
35
void srand48 (long seed) { srand (seed); }
32
36
#endif
33
37
Original file line number Diff line number Diff line change @@ -1492,7 +1492,7 @@ QgsSpatialRefSys QgsOgrProvider::getSRS()
1492
1492
OGRSpatialReference * mySpatialRefSys = ogrLayer->GetSpatialRef ();
1493
1493
if (mySpatialRefSys == NULL )
1494
1494
{
1495
- QgsLogger::warning (" no spatial reference found" );
1495
+ QgsDebugMsg (" no spatial reference found" );
1496
1496
}
1497
1497
else
1498
1498
{
You can’t perform that action at this time.
0 commit comments