Commit 2d6e623f authored by kaniini's avatar kaniini

timeline widget: don't reset text width on m_doc when calculating link hitboxes

parent 5d0ff0f3
......@@ -478,9 +478,6 @@ bool HTMLDelegate::editorEvent(QEvent *event, QAbstractItemModel *model, const Q
auto rect = parentView->visualRect (index);
auto pos = mouse_event->pos () - QPoint (rect.x (), rect.y ());
// dunno if we need this, but may as well have it
m_doc.setTextWidth(parentView->rect ().width () - 128);
// check if we are in a hitbox for a link
auto anchor = m_doc.documentLayout ()->anchorAt (pos);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment