1// Aseprite
2// Copyright (C) 2019 Igara Studio S.A.
3// Copyright (C) 2001-2015 David Capello
4//
5// This program is distributed under the terms of
6// the End-User License Agreement for Aseprite.
7
8#ifdef HAVE_CONFIG_H
9#include "config.h"
10#endif
11
12#include "app/cmd/with_tag.h"
13
14#include "doc/tag.h"
15
16namespace app {
17namespace cmd {
18
19using namespace doc;
20
21WithTag::WithTag(Tag* tag)
22 : m_tagId(tag->id())
23{
24}
25
26Tag* WithTag::tag()
27{
28 return get<Tag>(m_tagId);
29}
30
31} // namespace cmd
32} // namespace app
33