Commit 4e0337a1 authored by Albert Astals Cid's avatar Albert Astals Cid
Browse files

make clang-tidy a bit happier

Since translate takes doubles, divide by 2.0 instead of 2, it doesn't
really make a different since m_margin is 16 anyway
parent c81392a7
......@@ -944,7 +944,7 @@ void ThumbnailWidget::paint( QPainter &p, const QRect &_clipRect )
}
// draw the page using the shared PagePainter class
p.translate( m_margin/2, m_margin/2 );
p.translate( m_margin/2.0, m_margin/2.0 );
clipRect.translate( -m_margin/2, -m_margin/2 );
clipRect = clipRect.intersected( QRect( 0, 0, m_pixmapWidth, m_pixmapHeight ) );
if ( clipRect.isValid() )
......
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