Merge pull request #966 from manongjohn/fix_reappearing_deleted_style
Fix reappearing deleted style
This commit is contained in:
commit
b22bf9493e
1 changed files with 2 additions and 0 deletions
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue