Commit cfef5ea0 authored by Ivan Yossi's avatar Ivan Yossi 👌

Silence warning

Union Rect with itself gives same result.
parent 3328f797
...@@ -172,7 +172,6 @@ void KisToolPolylineBase::undoSelection() ...@@ -172,7 +172,6 @@ void KisToolPolylineBase::undoSelection()
if (m_points.size() > 2) { if (m_points.size() > 2) {
rect = pixelToView(QRectF(m_points.last(), m_points.at(m_points.size()-2)).normalized()); rect = pixelToView(QRectF(m_points.last(), m_points.at(m_points.size()-2)).normalized());
rect.adjust(-PREVIEW_LINE_WIDTH, -PREVIEW_LINE_WIDTH, PREVIEW_LINE_WIDTH, PREVIEW_LINE_WIDTH); rect.adjust(-PREVIEW_LINE_WIDTH, -PREVIEW_LINE_WIDTH, PREVIEW_LINE_WIDTH, PREVIEW_LINE_WIDTH);
rect |= rect;
updateCanvasViewRect(rect); updateCanvasViewRect(rect);
} }
if (m_points.size() > 0) { if (m_points.size() > 0) {
......
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