[Libreoffice-commits] core.git: cui/source
Justin Luth
justin_luth at sil.org
Fri Oct 28 18:59:18 UTC 2016
cui/source/tabpages/border.cxx | 2 ++
1 file changed, 2 insertions(+)
New commits:
commit c0baab9aa80bfa49b753d2d598a4fbc71ceb656e
Author: Justin Luth <justin_luth at sil.org>
Date: Fri Oct 28 19:40:23 2016 +0300
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 at libreoffice.org>
Reviewed-by: Justin Luth <justin_luth at sil.org>
diff --git a/cui/source/tabpages/border.cxx b/cui/source/tabpages/border.cxx
index 2a2a320..05c8914 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:
More information about the Libreoffice-commits
mailing list