]> SALOME platform Git repositories - modules/visu.git/commitdiff
Salome HOME
IPAL20650 Axis for rotation of Cut Planes are defined incorrectly
authordmv <dmv@opencascade.com>
Mon, 1 Dec 2008 11:32:56 +0000 (11:32 +0000)
committerdmv <dmv@opencascade.com>
Mon, 1 Dec 2008 11:32:56 +0000 (11:32 +0000)
src/VISUGUI/VisuGUI_CutPlanesDlg.cxx

index 7cdb29cbdd9364da69a854a79bc5780a50db1c0c..7f55826ec83f8a9fffc15b5d819341b199aaa2a1 100644 (file)
@@ -394,13 +394,13 @@ int VisuGUI_CutPlanesPane::storeToPrsObject (VISU::CutPlanes_i* thePrs)
 */
 void VisuGUI_CutPlanesPane::orientationChanged (int Id)
 {
-  if (Id == 0) { // RBxy->isChecked()
+  if ( RBxy->isChecked() ) { // RBxy->isChecked()
     LabelRot1->setText(tr("LBL_ROT_X"));
     LabelRot2->setText(tr("LBL_ROT_Y"));
-  } else if (Id == 1) { // RByz->isChecked()
+  } else if ( RByz->isChecked() ) { // RByz->isChecked()
     LabelRot1->setText(tr("LBL_ROT_Y"));
     LabelRot2->setText(tr("LBL_ROT_Z"));
-  } else {
+  } else if ( RBzx->isChecked() ) {
     LabelRot1->setText(tr("LBL_ROT_Z"));
     LabelRot2->setText(tr("LBL_ROT_X"));
   }