diff options
author | Samuel Mehrbrodt <samuel.mehrbrodt@allotropia.de> | 2021-07-27 13:50:26 +0200 |
---|---|---|
committer | Samuel Mehrbrodt <samuel.mehrbrodt@allotropia.de> | 2021-07-27 15:43:06 +0200 |
commit | 9a04703b22f9ffb11256d715f65e79a6a2417e18 (patch) | |
tree | b81957f1a5be5d6d1fbbe923b4f0b487d8d5d87a /svx | |
parent | 76eb2c9b4a96a6495f08bf6d7b6270ed93b53765 (diff) |
tdf#123626 Allow opening shape hyperlink with Ctrl-Click
Change-Id: I43201cd1fb7022fe5ff1479c66916c65adc554fa
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/119550
Tested-by: Jenkins
Reviewed-by: Samuel Mehrbrodt <samuel.mehrbrodt@allotropia.de>
Diffstat (limited to 'svx')
-rw-r--r-- | svx/source/svdraw/svdview.cxx | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/svx/source/svdraw/svdview.cxx b/svx/source/svdraw/svdview.cxx index 73185618c8ae..295992ba02cd 100644 --- a/svx/source/svdraw/svdview.cxx +++ b/svx/source/svdraw/svdview.cxx @@ -501,6 +501,13 @@ SdrHitKind SdrView::PickAnything(const Point& rLogicPos, SdrViewEvent& rVEvt) co } } } + if (eHit==SdrHitKind::UnmarkedObject && !pHitObj->getHyperlink().isEmpty()) + { + static SvxURLField aSvxURLField; + aSvxURLField.SetURL(pHitObj->getHyperlink()); + rVEvt.mpURLField = &aSvxURLField; + eHit = SdrHitKind::UrlField; + } } if (bHitPassDirect && |