summaryrefslogtreecommitdiff
path: root/sw/source/ui/table/tabledlg.cxx
diff options
context:
space:
mode:
authorHarri Pitkänen <hatapitk@iki.fi>2015-04-12 13:21:24 +0300
committerCaolán McNamara <caolanm@redhat.com>2015-04-14 20:08:42 +0000
commit3791159628d26364c391330d9bfc67d081d291f9 (patch)
tree979dd3866c67fd6c7da2f2a87c15921f9ec7b345 /sw/source/ui/table/tabledlg.cxx
parenteece059c1f728059b536763bffd2d4fc3537833e (diff)
Remove checks for HTMLMODE_SOME_STYLES
HTMLMODE_SOME_STYLES is enabled if we are in HTML mode (it is enabled for all HTML modes). These checks for conditionally disabling some table background controls are not needed anymore. Change-Id: I10fb73a67ac4bba250da4cea79ff6bae427a1613 Reviewed-on: https://gerrit.libreoffice.org/15264 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'sw/source/ui/table/tabledlg.cxx')
-rw-r--r--sw/source/ui/table/tabledlg.cxx5
1 files changed, 1 insertions, 4 deletions
diff --git a/sw/source/ui/table/tabledlg.cxx b/sw/source/ui/table/tabledlg.cxx
index 0f4930909dec..4f9f8a447f85 100644
--- a/sw/source/ui/table/tabledlg.cxx
+++ b/sw/source/ui/table/tabledlg.cxx
@@ -1222,10 +1222,7 @@ void SwTableTabDlg::PageCreated(sal_uInt16 nId, SfxTabPage& rPage)
SfxAllItemSet aSet(*(GetInputSetImpl()->GetPool()));
if (nId == m_nBackgroundId)
{
- sal_Int32 nFlagType = SVX_SHOW_TBLCTL;
- if(!( m_nHtmlMode & HTMLMODE_ON ) ||
- m_nHtmlMode & HTMLMODE_SOME_STYLES)
- nFlagType |= SVX_SHOW_SELECTOR;
+ sal_Int32 nFlagType = SVX_SHOW_TBLCTL | SVX_SHOW_SELECTOR;
aSet.Put (SfxUInt32Item(SID_FLAG_TYPE, nFlagType));
rPage.PageCreated(aSet);
}