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
remotes/thinkspoon/wilder
Albert Astals Cid 6 years ago
parent c81392a71c
commit 4e0337a1be
  1. 2
      ui/thumbnaillist.cpp

@ -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() )

Loading…
Cancel
Save