From: srit Date: Sun, 13 Jun 2010 16:56:56 +0000 (+0000) Subject: Replaced round function with portable rint function X-Git-Tag: v1.2.0~612 X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=commitdiff_plain;ds=sidebyside;h=6e6c4206bc13210d5dd5dabf1bd24f17de316a7a;p=clitk.git Replaced round function with portable rint function --- diff --git a/vv/vvToolRigidReg.cxx b/vv/vvToolRigidReg.cxx index 41c2264..b6c9466 100644 --- a/vv/vvToolRigidReg.cxx +++ b/vv/vvToolRigidReg.cxx @@ -538,17 +538,17 @@ void vvToolRigidReg::ReadFile() DD(orientations[1]); DD(orientations[2]);*/ //set the sliders and spin box values - xtrans_slider->setValue(round(translations[0]/mInput1->GetImage()->GetSpacing()[0])); + xtrans_slider->setValue(rint(translations[0]/mInput1->GetImage()->GetSpacing()[0])); UpdateXtranslider(); - ytrans_slider->setValue(round(translations[1]/mInput1->GetImage()->GetSpacing()[1])); + ytrans_slider->setValue(rint(translations[1]/mInput1->GetImage()->GetSpacing()[1])); UpdateYtranslider(); - ztrans_slider->setValue(round(translations[2]/mInput1->GetImage()->GetSpacing()[2])); + ztrans_slider->setValue(rint(translations[2]/mInput1->GetImage()->GetSpacing()[2])); UpdateZtranslider(); - yrot_slider->setValue(round(orientations[1])); + yrot_slider->setValue(rint(orientations[1])); UpdateYrotslider(); - xrot_slider->setValue(round(orientations[0])); + xrot_slider->setValue(rint(orientations[0])); UpdateXrotslider(); - zrot_slider->setValue(round(orientations[2])); + zrot_slider->setValue(rint(orientations[2])); UpdateZrotslider(); } //------------------------------------------------------------------------------