[GRASS-SVN] r29405 - grass/trunk/gui/wxpython/display_driver
svn_grass at osgeo.org
svn_grass at osgeo.org
Tue Dec 11 09:32:12 EST 2007
Author: martinl
Date: 2007-12-11 09:32:12 -0500 (Tue, 11 Dec 2007)
New Revision: 29405
Modified:
grass/trunk/gui/wxpython/display_driver/driver.cpp
Log:
Cosmetics: compiler warnings fixed
Modified: grass/trunk/gui/wxpython/display_driver/driver.cpp
===================================================================
--- grass/trunk/gui/wxpython/display_driver/driver.cpp 2007-12-11 14:08:09 UTC (rev 29404)
+++ grass/trunk/gui/wxpython/display_driver/driver.cpp 2007-12-11 14:32:12 UTC (rev 29405)
@@ -242,7 +242,7 @@
for (int i = 0; i < points->n_points; i++) {
Cell2Pixel(points->x[i], points->y[i], points->z[i],
&x, &y, &z);
- pointsScreen->Append((wxObject*) new wxPoint(x, y)); /* TODO: 3D */
+ pointsScreen->Append((wxObject*) new wxPoint((int) x, (int) y)); /* TODO: 3D */
}
dc->SetId(dcId); /* 0 | 1 (selected) */
@@ -416,7 +416,7 @@
}
}
- wxPoint point(x, y);
+ wxPoint point((int) x, (int) y);
if (IsSelected(line) && drawSegments) {
wxRect rect (point, point);
dc->SetIdBounds(dcId, rect);
@@ -1003,7 +1003,7 @@
Cell2Pixel(points->x[idx], points->y[idx], points->z[idx],
&vx, &vy, &vz);
- wxRect rect (wxPoint (vx, vy), wxPoint (vx, vy));
+ wxRect rect (wxPoint ((int) vx, (int) vy), wxPoint ((int) vx, (int) vy));
dc->SetIdBounds(DCid, rect);
DCid+=2;
}
More information about the grass-commit
mailing list