summaryrefslogtreecommitdiff
path: root/cui
diff options
context:
space:
mode:
authorJustin Luth <justin_luth@sil.org>2016-10-28 19:40:23 +0300
committerJustin Luth <justin_luth@sil.org>2016-10-28 18:58:49 +0000
commitc0baab9aa80bfa49b753d2d598a4fbc71ceb656e (patch)
treed94a593d1054a1babdf336aa41df2b04b347ac00 /cui
parent25df5f2ac79c8b121282e8c0d6506b456b37f819 (diff)
reset border should clear all borders
If no borders were originally defined, the reset button was failing to clear the last-selected border line. Eg. page border, click on two of the borders, then hit reset. One border remains defined, and didn't reset to the starting value of non-visible. Because one border was still "selected", it became visible again as SelStyleHdl_Impl reinitialized. Change-Id: I2d20ae1e02816d5b30fe126572b54e7083114fc3 Reviewed-on: https://gerrit.libreoffice.org/30365 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Justin Luth <justin_luth@sil.org>
Diffstat (limited to 'cui')
-rw-r--r--cui/source/tabpages/border.cxx2
1 files changed, 2 insertions, 0 deletions
diff --git a/cui/source/tabpages/border.cxx b/cui/source/tabpages/border.cxx
index 2a2a32065d9a..05c8914abc5c 100644
--- a/cui/source/tabpages/border.cxx
+++ b/cui/source/tabpages/border.cxx
@@ -527,6 +527,8 @@ void SvxBorderTabPage::Reset( const SfxItemSet* rSet )
m_pFrameSel->HideAllBorders();
}
+ if( !m_pFrameSel->IsAnyBorderVisible() )
+ m_pFrameSel->DeselectAllBorders();
// depict line (color) in controllers if unambiguous: