Members of the KDE Community are recommended to subscribe to the kde-community mailing list at https://mail.kde.org/mailman/listinfo/kde-community to allow them to participate in important discussions and receive other important announcements

Commit 5bacca69 authored by Lukáš Tvrdý's avatar Lukáš Tvrdý

Fix PVS Studio warning

V501 There are identical sub-expressions 'image.width() > 128' to the left and to the right of the '&&' operator. kis_brush.cpp 270
parent e35c4be1
......@@ -267,7 +267,7 @@ void KisBrush::setBrushTipImage(const QImage& image)
d->brushTipImage = image;
if (!image.isNull()) {
if (image.width() > 128 && image.width() > 128) {
if (image.width() > 128 || image.height() > 128) {
KoResource::setImage(image.scaled(128, 128, Qt::KeepAspectRatio, Qt::SmoothTransformation));
}
else {
......
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