Fix typo "Highlited" (#14956)

This commit is contained in:
PriitUring 2021-05-12 05:00:19 +03:00 committed by GitHub
parent bd7dc8b5e7
commit e432d67b3b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -315,10 +315,10 @@ void PiecesBar::highlightFile(int imagePos)
BitTorrent::TorrentInfo::PieceRange filePieces = m_torrent->info().filePieces(fileIndices.first());
ImageRange imageRange = transform.imagePos(filePieces);
QRect newHighlitedRegion {imageRange.first(), 0, imageRange.size(), m_image.height()};
if (newHighlitedRegion != m_highlightedRegion)
QRect newHighlightedRegion {imageRange.first(), 0, imageRange.size(), m_image.height()};
if (newHighlightedRegion != m_highlightedRegion)
{
m_highlightedRegion = newHighlitedRegion;
m_highlightedRegion = newHighlightedRegion;
update();
}
}