Make Entry::getCharBoxBounds() a const method

This commit is contained in:
Cerallin 2025-06-14 20:49:52 +08:00
parent 283bedf77e
commit 8b353c3b81
2 changed files with 2 additions and 2 deletions

View File

@ -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()))

View File

@ -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;