mirror of
https://github.com/cookiengineer/audacity
synced 2025-10-26 00:03:52 +02:00
Fix end of range of TrackPanelCellIterator
This commit is contained in:
@@ -3454,6 +3454,8 @@ TrackPanelCellIterator::TrackPanelCellIterator(TrackPanel *trackPanel, bool begi
|
|||||||
else
|
else
|
||||||
mpCell = trackPanel->GetBackgroundCell();
|
mpCell = trackPanel->GetBackgroundCell();
|
||||||
}
|
}
|
||||||
|
else
|
||||||
|
mDidBackground = true;
|
||||||
|
|
||||||
const auto size = mPanel->GetSize();
|
const auto size = mPanel->GetSize();
|
||||||
mRect = { 0, 0, size.x, size.y };
|
mRect = { 0, 0, size.x, size.y };
|
||||||
|
|||||||
@@ -43,7 +43,8 @@ public:
|
|||||||
friend inline bool operator==
|
friend inline bool operator==
|
||||||
(const TrackPanelCellIterator &lhs, const TrackPanelCellIterator &rhs)
|
(const TrackPanelCellIterator &lhs, const TrackPanelCellIterator &rhs)
|
||||||
{
|
{
|
||||||
return lhs.mpCell == rhs.mpCell;
|
return lhs.mpCell == rhs.mpCell &&
|
||||||
|
lhs.mDidBackground == rhs.mDidBackground;
|
||||||
}
|
}
|
||||||
|
|
||||||
value_type operator * () const;
|
value_type operator * () const;
|
||||||
|
|||||||
Reference in New Issue
Block a user