aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastian Geerken <devnull@localhost>2016-01-23 13:15:05 +0100
committerSebastian Geerken <devnull@localhost>2016-01-23 13:15:05 +0100
commit138c244e93d19eddb2d385fcdf27b9cb1cd8f525 (patch)
treed5c554acc791375956e3a2bdbb24ddfa1345d964
parent5d96abb1e07780e696fbf0b79ad05a5ce39244bd (diff)
SRDOP: Fix wrong assert().
-rw-r--r--dw/ruler.cc12
-rw-r--r--dw/ruler.hh2
2 files changed, 14 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? */
diff --git a/dw/ruler.hh b/dw/ruler.hh
index 74323d95..a3c6c962 100644
--- a/dw/ruler.hh
+++ b/dw/ruler.hh
@@ -26,6 +26,8 @@ protected:
bool usesAvailWidth ();
void draw (core::View *view, core::Rectangle *area,
core::DrawingContext *context);
+ core::Widget *getWidgetAtPoint (int x, int y,
+ core::GettingWidgetAtPointContext *context);
public:
static int CLASS_ID;