Commit 9a929743 authored by Lukáš Tvrdý's avatar Lukáš Tvrdý

Fix PVS Studio warning: this is potentially real bug!

V570 The 'd->autoSpacingActive' variable is assigned to itself. kis_brush.cpp 163
V570 The 'd->autoSpacingCoeff' variable is assigned to itself. kis_brush.cpp 164
parent 5ca856f5
......@@ -160,8 +160,8 @@ KisBrush::KisBrush(const KisBrush& rhs)
d->hasColor = rhs.d->hasColor;
d->angle = rhs.d->angle;
d->scale = rhs.d->scale;
d->autoSpacingActive = d->autoSpacingActive;
d->autoSpacingCoeff = d->autoSpacingCoeff;
d->autoSpacingActive = rhs.d->autoSpacingActive;
d->autoSpacingCoeff = rhs.d->autoSpacingCoeff;
setFilename(rhs.filename());
clearBrushPyramid();
// don't copy the boundary, it will be regenerated -- see bug 291910
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment