diff options
author | Caolán McNamara <caolanm@redhat.com> | 2020-01-07 10:07:27 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2020-01-07 14:14:42 +0100 |
commit | 86ffa73ed04900a33160cb6b28a8898fe139396d (patch) | |
tree | f098e558cd21c5ae82b5bc5989cb236791e0dfbe /svx | |
parent | e5f9fd49d15071532bbef19e8622c8f6cac9ece9 (diff) |
arrow in sidebar not getting reenabled on changing context
possibly since...
commit 5b77d17c4f1ca734babf962b45c1aa07bdca14e9
Date: Sat Jan 4 18:09:20 2020 +0000
sidebar: allow panels to lurk around instead of being disposed.
Change-Id: I4d3085a1bd0ceb5f04dba3e49c801df05b795061
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/86332
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'svx')
-rw-r--r-- | svx/source/sidebar/line/LinePropertyPanel.cxx | 4 | ||||
-rw-r--r-- | svx/source/sidebar/line/LinePropertyPanelBase.cxx | 6 |
2 files changed, 9 insertions, 1 deletions
diff --git a/svx/source/sidebar/line/LinePropertyPanel.cxx b/svx/source/sidebar/line/LinePropertyPanel.cxx index d8dd5fb17498..344d8a02961b 100644 --- a/svx/source/sidebar/line/LinePropertyPanel.cxx +++ b/svx/source/sidebar/line/LinePropertyPanel.cxx @@ -193,8 +193,10 @@ void LinePropertyPanel::HandleContextChange( break; } - if(!bShowArrows) + if (!bShowArrows) disableArrowHead(); + else + enableArrowHead(); } void LinePropertyPanel::setLineStyle(const XLineStyleItem& rItem) diff --git a/svx/source/sidebar/line/LinePropertyPanelBase.cxx b/svx/source/sidebar/line/LinePropertyPanelBase.cxx index 890203b82802..ae583af16f4b 100644 --- a/svx/source/sidebar/line/LinePropertyPanelBase.cxx +++ b/svx/source/sidebar/line/LinePropertyPanelBase.cxx @@ -909,6 +909,12 @@ void LinePropertyPanelBase::disableArrowHead() ActivateControls(); } +void LinePropertyPanelBase::enableArrowHead() +{ + mbArrowSupported = true; + ActivateControls(); +} + }} // end of namespace svx::sidebar /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ |