fixed variable collision

git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@5832 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
csoler 2012-11-16 21:02:20 +00:00
parent 3521bfb6de
commit 0aa921b010

View File

@ -285,10 +285,10 @@ void NetworkViewer::timerEvent(QTimerEvent *event)
memset(forceMap,0,2*S*S*sizeof(double)) ;
for(uint32_t i=0;i<_network.n_nodes();++i)
for(uint32_t k=0;k<_network.n_nodes();++k)
{
float x = S*_node_coords[i].x/width() ;
float y = S*_node_coords[i].y/height() ;
float x = S*_node_coords[k].x/width() ;
float y = S*_node_coords[k].y/height() ;
int i=(int)floor(x) ;
int j=(int)floor(y) ;