Browse Source

Fix typo "Highlited" (#14956)

adaptive-webui-19844
PriitUring 4 years ago committed by GitHub
parent
commit
e432d67b3b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 6
      src/gui/properties/piecesbar.cpp

6
src/gui/properties/piecesbar.cpp

@ -315,10 +315,10 @@ void PiecesBar::highlightFile(int imagePos) @@ -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();
}
}

Loading…
Cancel
Save