diff --git a/vviewer/vviewer.py b/vviewer/vviewer.py index bb35c7d2bae38b822498377947d53db35d075f39..43ff4246f69dac41f03970dc3e09d7c3c48a0cc3 100755 --- a/vviewer/vviewer.py +++ b/vviewer/vviewer.py @@ -1503,9 +1503,10 @@ class vviewer(QtGui.QMainWindow): if ((testFloat(self.x_box.text()) and testFloat(self.y_box.text()) and testFloat(self.z_box.text()))): - x = int(self.x_box.text()) - y = int(self.y_box.text()) - z = int(self.z_box.text()) + + x = int(float(self.x_box.text())) + y = int(float(self.y_box.text())) + z = int(float(self.z_box.text())) # import pdb; pdb.set_trace() index = self.imagelist.currentRow() if self.voxel_coord: