Skip to content

Commit

Permalink
[TD]prevent recalculation of dimension type during repair
Browse files Browse the repository at this point in the history
  • Loading branch information
WandererFan committed May 26, 2024
1 parent 5b17a73 commit 7f26c17
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 4 deletions.
3 changes: 0 additions & 3 deletions src/Mod/TechDraw/Gui/TaskDimRepair.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,6 @@ void TaskDimRepair::saveDimState()
{
m_saveMeasureType = m_dim->MeasureType.getValue();
m_saveDimType = m_dim->Type.getValue();
m_dimType = m_dim->Type.getValue();
m_saveRefs3d = m_dim->getReferences3d();
m_saveRefs2d = m_dim->getReferences2d();
m_saveDvp = m_dim->getViewPart();
Expand Down Expand Up @@ -152,7 +151,6 @@ void TaskDimRepair::slotUseSelection()
}
}

m_dimType = mapGeometryTypeToDimType(m_dim->Type.getValue(), geometryRefs2d, geometryRefs3d);
m_toApply2d = references2d;
if (references3d.empty()) {
m_toApply3d.clear();
Expand Down Expand Up @@ -238,7 +236,6 @@ bool TaskDimRepair::accept()

Gui::Command::openCommand(Base::Tools::toStdString(tr("Repair Dimension")).c_str());
replaceReferences();
m_dim->Type.setValue(m_dimType);
Gui::Command::commitCommand();

m_dim->recomputeFeature();
Expand Down
1 change: 0 additions & 1 deletion src/Mod/TechDraw/Gui/TaskDimRepair.h
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,6 @@ protected Q_SLOTS:
private:
std::unique_ptr<Ui_TaskDimRepair> ui;
TechDraw::DrawViewDimension* m_dim;
long int m_dimType;

long int m_saveMeasureType;
long int m_saveDimType;
Expand Down

0 comments on commit 7f26c17

Please sign in to comment.