Skip to content

Commit

Permalink
Solved issue LibreCAD#1329
Browse files Browse the repository at this point in the history
  • Loading branch information
melwyncarlo committed Nov 28, 2021
1 parent e75cba8 commit 754668b
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions librecad/src/ui/forms/qg_dlgoptionsdrawing.cpp
Expand Up @@ -282,8 +282,9 @@ void QG_DlgOptionsDrawing::setGraphic(RS_Graphic* g) {
cbDimGap->setEditText(QString("%1").arg(dimgap));

// dimension arrow size:
double dimasz = graphic->getVariableDouble("$DIMASZ",
RS_Units::convert(2.5, RS2::Millimeter, unit));
double dimasz = graphic->getVariableDouble("$DIMASZ", RS_Units::convert(2.5, RS2::Millimeter, unit))
- RS_TOLERANCE;

//RLZ cbDimAsz->setCurrentText(QString("%1").arg(dimasz));
cbDimAsz->setEditText(QString("%1").arg(dimasz));
// dimension tick size:
Expand Down Expand Up @@ -489,7 +490,7 @@ void QG_DlgOptionsDrawing::validate() {
ok1 = ok1 || ok2;

graphic->addVariable("$DIMASZ",
RS_Math::eval(cbDimAsz->currentText()), 40);
RS_Math::eval(cbDimAsz->currentText()) + RS_TOLERANCE, 40);
//dimension tick size, 0 for no tick
graphic->addVariable("$DIMTSZ",
RS_Math::eval(cbDimTsz->currentText()), 40);
Expand Down

0 comments on commit 754668b

Please sign in to comment.