Skip to content

Commit 3651997

Browse files
committed
Fix typo
1 parent dd6263a commit 3651997

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

plugins/robots/common/twoDModel/src/engine/view/parts/colorItemPopup.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ QWidget *ColorItemPopup::initSpinBox()
147147
spinBox->setPalette(spinBoxPalette);
148148
connect(spinBox, &PopupMetricWidget::valueChanged, this, [=](qreal value) {
149149
setPropertyMassively("thickness", value);
150-
if (qAbs(mLastThickness - value) >= epsilon) {
150+
if (qAbs(mLastThickness - value) > epsilon103) {
151151
mLastThickness = value;
152152
Q_EMIT userPenChanged(pen());
153153
}
@@ -174,6 +174,6 @@ void ColorItemPopup::setBrushPickerColor(const QColor &color)
174174
QPen ColorItemPopup::pen() const
175175
{
176176
QPen pen(mLastColor);
177-
pen.setWidth(mLastThickness);
177+
pen.setWidthF(mLastThickness);
178178
return pen;
179179
}

plugins/robots/common/twoDModel/src/engine/view/parts/colorItemPopup.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ private Q_SLOTS:
7676
PopupMetricWidget *mSpinBox {}; // Takes ownership
7777
QColor mLastColor;
7878
bool mLastFilled {};
79-
int mLastThickness { -1 };
79+
qreal mLastThickness { -1 };
8080
};
8181

8282
}

0 commit comments

Comments
 (0)