From 1911fe50ffe449d5ec07d01e7ecd099ebf31a6ae Mon Sep 17 00:00:00 2001 From: wmayer Date: Wed, 9 Nov 2022 17:46:46 +0100 Subject: [PATCH] PD: [skip ci] improve the exception text --- src/Mod/PartDesign/Gui/TaskRevolutionParameters.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/Mod/PartDesign/Gui/TaskRevolutionParameters.cpp b/src/Mod/PartDesign/Gui/TaskRevolutionParameters.cpp index 3a986a78d9..7227ee2787 100644 --- a/src/Mod/PartDesign/Gui/TaskRevolutionParameters.cpp +++ b/src/Mod/PartDesign/Gui/TaskRevolutionParameters.cpp @@ -48,7 +48,8 @@ using namespace Gui; TaskRevolutionParameters::TaskRevolutionParameters(PartDesignGui::ViewProvider* RevolutionView, QWidget *parent) : TaskSketchBasedParameters(RevolutionView, parent, "PartDesign_Revolution", tr("Revolution parameters")), - ui(new Ui_TaskRevolutionParameters), proxy(new QWidget(this)) + ui(new Ui_TaskRevolutionParameters), + proxy(new QWidget(this)) { // we need a separate container widget to add all controls to ui->setupUi(proxy); @@ -71,7 +72,7 @@ TaskRevolutionParameters::TaskRevolutionParameters(PartDesignGui::ViewProvider* ui->revolveAngle->bind(rev->Angle); } else { - throw Base::TypeError("The ViewProvider is not a Groove or a Revolution."); + throw Base::TypeError("The object is neither a Groove nor a Revolution."); } ui->checkBoxMidplane->setChecked(propMidPlane->getValue()); @@ -116,7 +117,7 @@ void TaskRevolutionParameters::fillAxisCombo(bool forceRefill) //add sketch axes auto *pcFeat = dynamic_cast(vp->getObject()); if (!pcFeat) - throw Base::TypeError("The ViewProvider is not ProfileBased."); + throw Base::TypeError("The object is not ProfileBased."); auto *pcSketch = static_cast(pcFeat->Profile.getValue()); if (pcSketch){ addAxisToCombo(pcSketch,"V_Axis",QObject::tr("Vertical sketch axis"));