[Qgis-developer] Mac OS X build of HEAD

Gary Sherman sherman at mrcc.com
Sun Jan 28 20:22:58 EST 2007


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1


On Jan 28, 2007, at 3:45 PM, Tom Elwertowski wrote:

> Gary Sherman wrote:
>> I also noticed some display problems. The title bar text ends up  
>> down in the map canvas area (see http://gisalaska.com/images/ 
>> qgis_osx_display.png).
>
> This should be fixed by r6471. Thee was an integer overflow when  
> calculating an empty panning rectangle.
>
> // setGeometry (Qt 4.2) is causing Mac window corruption (decorations
> // are drawn at odd locations) if both coords are at limit. This may
> // have something to do with Qt calculating dimensions as x2 - x1 + 1.
> // (INT_MAX - INT_MIN + 1 is UINT_MAX + 1)
> if (x1 == INT_MIN && x2 == INT_MAX) x1 += 1;  // x2 -= 1 works too
> if (y1 == INT_MIN && y2 == INT_MAX) y1 += 1;
>

Good catch. Works good here on the poor little powerbook....

- -_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-
Gary Sherman
Micro Resources: http://mrcc.com
   *Geospatial Hosting
   *Web Site Hosting
"We work virtually everywhere"
- -_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-



-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (Darwin)

iD8DBQFFvUxz1zKuzV6goTgRAs3FAJ0cp2b9pWGg27xY1RnBeYsJr2xvfQCgmulQ
djaKrJ3Q3cX9ob8oOeqDYHk=
=kTNY
-----END PGP SIGNATURE-----



More information about the Qgis-developer mailing list