From 6e6c4206bc13210d5dd5dabf1bd24f17de316a7a Mon Sep 17 00:00:00 2001 From: srit Date: Sun, 13 Jun 2010 16:56:56 +0000 Subject: [PATCH] Replaced round function with portable rint function --- vv/vvToolRigidReg.cxx | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) 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(); } //------------------------------------------------------------------------------ -- 2.47.1