mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-06 06:44:57 +01:00
Fix assert in Waveview cache size
previous condition made no sense. effectively assert(bytes > 0).
This commit is contained in:
parent
445f9a51bf
commit
a6fc82537e
1 changed files with 2 additions and 1 deletions
|
|
@ -190,7 +190,8 @@ WaveViewCache::increase_size (uint64_t bytes)
|
|||
void
|
||||
WaveViewCache::decrease_size (uint64_t bytes)
|
||||
{
|
||||
assert (image_cache_size - bytes < image_cache_size);
|
||||
assert (bytes > 0);
|
||||
assert (bytes <= image_cache_size);
|
||||
image_cache_size -= bytes;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue