Merge pull request #966 from manongjohn/fix_reappearing_deleted_style

Fix reappearing deleted style
This commit is contained in:
manongjohn 2022-04-17 12:01:02 -04:00 committed by GitHub
commit b22bf9493e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -209,6 +209,8 @@ void TPalette::Page::removeStyle(int indexInPage) {
assert(0 <= styleId && styleId < m_palette->getStyleCount());
assert(m_palette->m_styles[styleId].first == this);
m_palette->m_styles[styleId].first = 0;
m_palette->m_styles[styleId].second =
TColorStyleP(new TSolidColorStyle(TPixel32::Black));
m_styleIds.erase(m_styleIds.begin() + indexInPage);
}