Commit b6bd9d20 authored by Denis Khachko's avatar Denis Khachko

no message

parent 27541e75
...@@ -4269,7 +4269,7 @@ void RobotView::wheelEvent ( QWheelEvent * event ) ...@@ -4269,7 +4269,7 @@ void RobotView::wheelEvent ( QWheelEvent * event )
QSize oldSize=this->size(); QSize oldSize=this->size();
emit resizeRequest(newGeometry); emit resizeRequest(newGeometry);
if(newGeometry != oldSize) if(newGeometry != oldSize)
{centerOn(newGeometry.width()/2-CurCellSize/2,newGeometry.height()/2-CurCellSize/2); {centerOn(newGeometry.width()/2-CurCellSize,newGeometry.height()/2-CurCellSize);
qDebug()<<"CenterON:"<<newGeometry.width()/2-CurCellSize/2<<newGeometry.width()/2-CurCellSize/2; qDebug()<<"CenterON:"<<newGeometry.width()/2-CurCellSize/2<<newGeometry.width()/2-CurCellSize/2;
this->scale(1/c_scale,1/c_scale); this->scale(1/c_scale,1/c_scale);
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment