1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-10 23:44:24 +00:00

Added a method RectangleList::ensureStorageAllocated

This commit is contained in:
jules 2014-06-29 18:39:45 +01:00
parent 02460bb95b
commit 0bf57ddf0c
5 changed files with 19 additions and 0 deletions

View file

@ -391,6 +391,7 @@ public:
const MinMaxValue* cacheData = getData (channelNum, clip.getX() - area.getX());
RectangleList<float> waveform;
waveform.ensureStorageAllocated (clip.getWidth());
float x = (float) clip.getX();