X-Git-Url: http://git.salome-platform.org/gitweb/?p=modules%2Fsmesh.git;a=blobdiff_plain;f=src%2FSMESHGUI%2FSMESHGUI_MakeNodeAtPointDlg.cxx;h=2754b34a92436c064a1a15b786e5bdc3d0ac919b;hp=970500e69d7f60d60c8abd5e20da97d695ab7b48;hb=3c043924f918605ef44f9fa8ca3294bf77cd101f;hpb=98115fe1b8082eeb458a048ebb268130c4159b84;ds=sidebyside diff --git a/src/SMESHGUI/SMESHGUI_MakeNodeAtPointDlg.cxx b/src/SMESHGUI/SMESHGUI_MakeNodeAtPointDlg.cxx index 970500e69..2754b34a9 100644 --- a/src/SMESHGUI/SMESHGUI_MakeNodeAtPointDlg.cxx +++ b/src/SMESHGUI/SMESHGUI_MakeNodeAtPointDlg.cxx @@ -716,17 +716,17 @@ void SMESHGUI_MakeNodeAtPointOp::redisplayPreview() myDlg->myDestinationZ->SetValue(z); } if ( myDestCoordChanged ) { - dx = myDlg->myDestinationX->GetValue() - myDlg->myCurrentX->GetValue(); - dy = myDlg->myDestinationY->GetValue() - myDlg->myCurrentY->GetValue(); - dz = myDlg->myDestinationZ->GetValue() - myDlg->myCurrentZ->GetValue(); + dx = myDlg->myDestinationX->GetValue() - x; + dy = myDlg->myDestinationY->GetValue() - y; + dz = myDlg->myDestinationZ->GetValue() - z; myDlg->myDestDX->SetValue(dx); myDlg->myDestDY->SetValue(dy); myDlg->myDestDZ->SetValue(dz); } else { - dx = myDlg->myDestDX->GetValue() + myDlg->myCurrentX->GetValue();; - dy = myDlg->myDestDY->GetValue() + myDlg->myCurrentY->GetValue();; - dz = myDlg->myDestDZ->GetValue() + myDlg->myCurrentZ->GetValue();; + dx = myDlg->myDestDX->GetValue() + x; + dy = myDlg->myDestDY->GetValue() + y; + dz = myDlg->myDestDZ->GetValue() + z; myDlg->myDestinationX->SetValue(dx); myDlg->myDestinationY->SetValue(dy); myDlg->myDestinationZ->SetValue(dz);