diff options
author | Sebastian Geerken <devnull@localhost> | 2016-01-23 13:15:05 +0100 |
---|---|---|
committer | Sebastian Geerken <devnull@localhost> | 2016-01-23 13:15:05 +0100 |
commit | 138c244e93d19eddb2d385fcdf27b9cb1cd8f525 (patch) | |
tree | d5c554acc791375956e3a2bdbb24ddfa1345d964 /dw/ruler.cc | |
parent | 5d96abb1e07780e696fbf0b79ad05a5ce39244bd (diff) |
SRDOP: Fix wrong assert().
Diffstat (limited to 'dw/ruler.cc')
-rw-r--r-- | dw/ruler.cc | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/dw/ruler.cc b/dw/ruler.cc index bff43479..fc0bbce6 100644 --- a/dw/ruler.cc +++ b/dw/ruler.cc @@ -79,6 +79,18 @@ void Ruler::draw (core::View *view, core::Rectangle *area, drawWidgetBox (view, area, false); } +core::Widget *Ruler::getWidgetAtPoint (int x, int y, + core::GettingWidgetAtPointContext + *context) +{ + // Override (complex) implementation OOFAwareWidget::getWidgetAtPoint(). + + if (inAllocation (x, y)) + return this; + else + return NULL; +} + core::Iterator *Ruler::iterator (core::Content::Type mask, bool atEnd) { /** \todo TextIterator? */ |