summaryrefslogtreecommitdiff
path: root/sw/source/ui/table
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2015-01-09 10:04:38 +0200
committerNoel Grandin <noel@peralex.com>2015-01-09 10:06:17 +0200
commit901e5c3a21a1299d10c44bc844246fe8c329bb82 (patch)
tree358ff817974d0eb5c047aa28fe83a2c1871f756b /sw/source/ui/table
parentcd9e2ecba38c31eb30e05d3ee2c9f4629dd89d40 (diff)
fdo#84938: convert FRMTYPE_ #defines to 'enum class'
and consequently fix bug in SwPageFrm::PreparePage where it was comparing against the wrong #define's Change-Id: I681f7e9f3f9bbe1ddf2613814ed36cfe0955825f
Diffstat (limited to 'sw/source/ui/table')
-rw-r--r--sw/source/ui/table/tabledlg.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/sw/source/ui/table/tabledlg.cxx b/sw/source/ui/table/tabledlg.cxx
index 2c11c22c8b47..c929c2136456 100644
--- a/sw/source/ui/table/tabledlg.cxx
+++ b/sw/source/ui/table/tabledlg.cxx
@@ -1237,8 +1237,8 @@ void SwTableTabDlg::PageCreated(sal_uInt16 nId, SfxTabPage& rPage)
else if (nId == m_nTextFlowId)
{
static_cast<SwTextFlowPage&>(rPage).SetShell(pShell);
- const sal_uInt16 eType = pShell->GetFrmType(0,true);
- if( !(FRMTYPE_BODY & eType) )
+ const FrmTypeFlags eType = pShell->GetFrmType(0,true);
+ if( !(FrmTypeFlags::BODY & eType) )
static_cast<SwTextFlowPage&>(rPage).DisablePageBreak();
}
}