diff options
Diffstat (limited to 'source/core/slang-string-slice-pool.cpp')
| -rw-r--r-- | source/core/slang-string-slice-pool.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/source/core/slang-string-slice-pool.cpp b/source/core/slang-string-slice-pool.cpp index 692bc2b9a..142952855 100644 --- a/source/core/slang-string-slice-pool.cpp +++ b/source/core/slang-string-slice-pool.cpp @@ -40,6 +40,9 @@ void StringSlicePool::_set(const ThisType& rhs) const Index startIndex = rhs.getFirstAddedIndex(); const Count count = rhs.m_slices.getCount(); + if (count == 0) + return; + // We need the same amount of slices m_slices.setCount(count); |
