1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-09-23 15:41:09 +02:00

Add an assert for possible null pointer dereference detected by cppcheck.

This commit is contained in:
v.audacity 2011-11-10 20:17:44 +00:00
parent 412b81392c
commit b2e0e984d9

View File

@ -5830,6 +5830,7 @@ void TrackPanel::UpdateVRuler(Track *t)
void TrackPanel::UpdateTrackVRuler(Track *t)
{
wxASSERT(t);
wxRect r(GetVRulerOffset(),
kTopInset,
GetVRulerWidth(),