PartDesign: fix exiting a TransformedFeature editing while in reference selection mode

This commit is contained in:
logari81 2013-02-07 23:46:53 +01:00
parent 9907c09efd
commit 5df7f2db88
2 changed files with 6 additions and 2 deletions

View File

@ -259,7 +259,10 @@ bool TaskDlgTransformedParameters::accept()
bool TaskDlgTransformedParameters::reject()
{
// Get object before view is invalidated
// ensure that we are not in selection mode
parameter->exitSelectionMode();
// get object and originals before view is invalidated (if it is invalidated)
PartDesign::Transformed* pcTransformed = static_cast<PartDesign::Transformed*>(TransformedView->getObject());
std::vector<App::DocumentObject*> pcOriginals = pcTransformed->Originals.getValues();

View File

@ -64,6 +64,8 @@ public:
/// Get the sketch object of the first original either of the object associated with this feature or with the parent feature (MultiTransform mode)
App::DocumentObject* getSketchObject() const;
void exitSelectionMode();
protected Q_SLOTS:
/// Connect the subTask OK button to the MultiTransform task
virtual void onSubTaskButtonOK() {}
@ -81,7 +83,6 @@ protected:
void showObject();
void hideOriginals();
void showOriginals();
void exitSelectionMode();
void addReferenceSelectionGate(bool edge, bool face);
protected: