mirror of
https://github.com/aseprite/aseprite.git
synced 2024-11-20 14:21:45 +00:00
Fix timeline re-painting issue when changing tag range (#3242)
This commit is contained in:
parent
96cb38c29d
commit
b31affd2e8
@ -77,8 +77,10 @@ namespace app {
|
||||
virtual void onSelectionChanged(DocEvent& ev) { }
|
||||
virtual void onSelectionBoundariesChanged(DocEvent& ev) { }
|
||||
|
||||
// Tags
|
||||
// When the tag range changes
|
||||
virtual void onTagChange(DocEvent& ev) { }
|
||||
|
||||
// When the tag is renamed
|
||||
virtual void onTagRename(DocEvent& ev) { }
|
||||
|
||||
// Slices
|
||||
|
@ -1917,6 +1917,11 @@ void Timeline::onRemoveTag(DocEvent& ev)
|
||||
onAddTag(ev);
|
||||
}
|
||||
|
||||
void Timeline::onTagChange(DocEvent& ev)
|
||||
{
|
||||
invalidateHit(Hit(PART_TAGS));
|
||||
}
|
||||
|
||||
void Timeline::onTagRename(DocEvent& ev)
|
||||
{
|
||||
invalidateHit(Hit(PART_TAGS));
|
||||
|
@ -163,6 +163,7 @@ namespace app {
|
||||
void onLayerNameChange(DocEvent& ev) override;
|
||||
void onAddTag(DocEvent& ev) override;
|
||||
void onRemoveTag(DocEvent& ev) override;
|
||||
void onTagChange(DocEvent& ev) override;
|
||||
void onTagRename(DocEvent& ev) override;
|
||||
|
||||
// app::Context slots.
|
||||
|
Loading…
Reference in New Issue
Block a user