Kaydet (Commit) 7a6b6694 authored tarafından Armin Le Grand's avatar Armin Le Grand Kaydeden (comit) Armin Le Grand

Allow URL-Check for non-selected TableText

The part to detect a hit on a TableObjectText
in Draw/Impress for a non-selected Table was
setting the HitType to SdrHitKind::TextEditObj.
This prevents the latter happeing check for URL
(see below). Not directly setting to TextEditObj
is okay, this is determined and set later. I
checked various possible changes to keep the
behaviour as for 'normal' SdrObjects, so please
be careful when doing changes in the HitTest code

Change-Id: I326a73b88fc56fd902b5052cc3a2ddecf3c3ba61
Reviewed-on: https://gerrit.libreoffice.org/52016Tested-by: 's avatarJenkins <ci@libreoffice.org>
Reviewed-by: 's avatarArmin Le Grand <Armin.Le.Grand@cib.de>
üst 87b0eb01
...@@ -380,7 +380,12 @@ SdrHitKind SdrView::PickAnything(const Point& rLogicPos, SdrViewEvent& rVEvt) co ...@@ -380,7 +380,12 @@ SdrHitKind SdrView::PickAnything(const Point& rLogicPos, SdrViewEvent& rVEvt) co
eHit = SdrHitKind::Cell; eHit = SdrHitKind::Cell;
break; break;
case sdr::table::TableHitKind::CellTextArea: case sdr::table::TableHitKind::CellTextArea:
eHit = SdrHitKind::TextEditObj; // Keep state on UnmarkedObject to allow the below
// 'check for URL field' to be executed, else popups
// for e.g. URL links when hoovering and clicking
// them will not work. Tried several other changes,
// but this oje safely keeps existing behaviour as-is.
eHit = SdrHitKind::UnmarkedObject;
break; break;
default: default:
break; break;
......
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