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 | |
16 | namespace app { |
17 | namespace cmd { |
18 | |
19 | using namespace doc; |
20 | |
21 | WithTag::WithTag(Tag* tag) |
22 | : m_tagId(tag->id()) |
23 | { |
24 | } |
25 | |
26 | Tag* WithTag::tag() |
27 | { |
28 | return get<Tag>(m_tagId); |
29 | } |
30 | |
31 | } // namespace cmd |
32 | } // namespace app |
33 | |