X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FPrimitivesPlugin%2FPrimitivesPlugin_Box.cpp;fp=src%2FPrimitivesPlugin%2FPrimitivesPlugin_Box.cpp;h=e863e20caad01f11e14363ab505ce346e63f81c7;hb=6ebb9744bc16a770e3189b691632a32f25a09f92;hp=554e7012bab8424fca68e51a1f6cec91e053f027;hpb=cd3f2b2e26eb0e39263cf0abefd2c463a0491aed;p=modules%2Fshaper.git diff --git a/src/PrimitivesPlugin/PrimitivesPlugin_Box.cpp b/src/PrimitivesPlugin/PrimitivesPlugin_Box.cpp index 554e7012b..e863e20ca 100644 --- a/src/PrimitivesPlugin/PrimitivesPlugin_Box.cpp +++ b/src/PrimitivesPlugin/PrimitivesPlugin_Box.cpp @@ -15,6 +15,7 @@ #include #include +#include //================================================================================================= PrimitivesPlugin_Box::PrimitivesPlugin_Box() // Nothing to do during instantiation @@ -61,8 +62,7 @@ void PrimitivesPlugin_Box::createBoxByDimensions() // These checks should be made to the GUI for the feature but // the corresponding validator does not exist yet. if (!aBoxAlgo->check()) { - // The error is not displayed in a popup window. It must be in the status bar. - setError(aBoxAlgo->getError(), false); + setError(aBoxAlgo->getError()); return; } @@ -110,8 +110,7 @@ void PrimitivesPlugin_Box::createBoxByTwoPoints() // These checks should be made to the GUI for the feature but // the corresponding validator does not exist yet. if (!aBoxAlgo->check()) { - // The error is not displayed in a popup window. It must be in the message console. - setError(aBoxAlgo->getError(), false); + setError(aBoxAlgo->getError()); return; } @@ -121,12 +120,12 @@ void PrimitivesPlugin_Box::createBoxByTwoPoints() // Check if the creation of the box if(!aBoxAlgo->isDone()) { // The error is not displayed in a popup window. It must be in the message console. - setError(aBoxAlgo->getError(), false); + setError(aBoxAlgo->getError()); return; } if(!aBoxAlgo->checkValid("Box builder with two points")) { // The error is not displayed in a popup window. It must be in the message console. - setError(aBoxAlgo->getError(), false); + setError(aBoxAlgo->getError()); return; }