mirror of https://github.com/aseprite/aseprite.git
Make Entry::getCharBoxBounds() a const method
This commit is contained in:
parent
283bedf77e
commit
8b353c3b81
|
@ -251,7 +251,7 @@ gfx::Rect Entry::getEntryTextBounds() const
|
|||
return onGetEntryTextBounds();
|
||||
}
|
||||
|
||||
gfx::Rect Entry::getCharBoxBounds(const int i)
|
||||
gfx::Rect Entry::getCharBoxBounds(const int i) const
|
||||
{
|
||||
ASSERT(i >= 0 && i < int(m_boxes.size()));
|
||||
if (i >= 0 && i < int(m_boxes.size()))
|
||||
|
|
|
@ -76,7 +76,7 @@ public:
|
|||
obs::signal<void()> Change;
|
||||
|
||||
protected:
|
||||
gfx::Rect getCharBoxBounds(int i);
|
||||
gfx::Rect getCharBoxBounds(int i) const;
|
||||
|
||||
// Events
|
||||
bool onProcessMessage(Message* msg) override;
|
||||
|
|
Loading…
Reference in New Issue