[Qgis-developer] Mac OS X build of HEAD

Tom Elwertowski telwertowski at comcast.net
Sun Jan 28 19:45:17 EST 2007


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;

Tom



More information about the Qgis-developer mailing list