diff --git a/src/ui/entry.cpp b/src/ui/entry.cpp index 4e0634128..d137b82f3 100644 --- a/src/ui/entry.cpp +++ b/src/ui/entry.cpp @@ -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())) diff --git a/src/ui/entry.h b/src/ui/entry.h index e4e96473f..139feab7d 100644 --- a/src/ui/entry.h +++ b/src/ui/entry.h @@ -76,7 +76,7 @@ public: obs::signal Change; protected: - gfx::Rect getCharBoxBounds(int i); + gfx::Rect getCharBoxBounds(int i) const; // Events bool onProcessMessage(Message* msg) override;