X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FVISUGUI%2FVisuGUI_CutLinesDlg.cxx;h=14563d8ac94192b1064552d2bfd034f93e0e97e3;hb=37ee6227635c613d8b40f46a3b00e99669086e62;hp=1db03f8f6ce1e0355aa12aa2a35a6ca2f6a9b60a;hpb=a7e9d108adf9283e24d85357125a07022f409d3a;p=modules%2Fvisu.git diff --git a/src/VISUGUI/VisuGUI_CutLinesDlg.cxx b/src/VISUGUI/VisuGUI_CutLinesDlg.cxx index 1db03f8f..14563d8a 100644 --- a/src/VISUGUI/VisuGUI_CutLinesDlg.cxx +++ b/src/VISUGUI/VisuGUI_CutLinesDlg.cxx @@ -541,7 +541,7 @@ void VisuGUI_CutLinesDlg::updateGlyphs(bool update){ for(int i=0; i<3; i++) aBoundCenter[i] = (bounds[i*2] + bounds[i*2+1])/2.0; for(int i=0; i<3; i++){ - if (myAllCurvesInvertedCheck->isChecked()) + if (!myAllCurvesInvertedCheck->isChecked()) aSecondPnt[i] = aBasePnt[i] + aDirLn[i]; else aSecondPnt[i] = -aBasePnt[i] - aDirLn[i]; @@ -835,7 +835,14 @@ void VisuGUI_CutLinesDlg::onPreviewCheck (bool thePreview) */ void VisuGUI_CutLinesDlg::onAllCurvesInvertedCheck(bool theInvert) { - myCutLines->SetAllCurvesInverted(theInvert); + if (myAllCurvesInvertedCheck->isChecked()){ + myCutLines->SetAllCurvesInverted(true); + myPrs->SetAllCurvesInverted(true); + } + else { + myCutLines->SetAllCurvesInverted(false); + myPrs->SetAllCurvesInverted(false); + } updateGlyphs(true); }