summaryrefslogtreecommitdiff
path: root/dw/textblock.cc
diff options
context:
space:
mode:
authorSebastian Geerken <devnull@localhost>2016-04-03 11:27:52 +0200
committerSebastian Geerken <devnull@localhost>2016-04-03 11:27:52 +0200
commitc242567805390620f4c47d17af68bb81b715efa2 (patch)
treeb7d2fe6d0c730409ac9ce2384a5aef759c4c4b5d /dw/textblock.cc
parent0f7e7cd2e4d43343b6cdfafaef024a3037f389ef (diff)
WidgetReference: Widget::widgetReference.
Diffstat (limited to 'dw/textblock.cc')
-rw-r--r--dw/textblock.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/dw/textblock.cc b/dw/textblock.cc
index fb7c141c..f4a53f7f 100644
--- a/dw/textblock.cc
+++ b/dw/textblock.cc
@@ -2425,6 +2425,7 @@ void Textblock::addWidget (core::Widget *widget, core::style::Style *style)
Word *word = addWord (size.width, size.ascent, size.descent, 0, style);
word->content.type = core::Content::WIDGET_OOF_REF;
word->content.widgetReference = new core::WidgetReference (widget);
+ widget->setWidgetReference (word->content.widgetReference);
// After a out-of-flow reference, breaking is allowed. (This avoids some
// problems with breaking near float definitions.)