Skip to content

Commit

Permalink
Compare m_paintPixmap.size() to viewPortRect.size() instead of clip size
Browse files Browse the repository at this point in the history
  • Loading branch information
khoidauminh committed Feb 8, 2025
1 parent ac1b869 commit 2195aeb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/gui/clips/SampleClipView.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,7 @@ void SampleClipView::paintEvent( QPaintEvent * pe )

m_paintPixmapXPosition = pe->rect().x();

if (m_paintPixmap.isNull() || m_paintPixmap.size() != size())
if (m_paintPixmap.isNull() || m_paintPixmap.size() != viewPortRect.size())
{
m_paintPixmap = QPixmap(viewPortRect.size());
}
Expand Down

0 comments on commit 2195aeb

Please sign in to comment.