diff options
author | Noel Grandin <noel@peralex.com> | 2015-01-09 10:04:38 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2015-01-09 10:06:17 +0200 |
commit | 901e5c3a21a1299d10c44bc844246fe8c329bb82 (patch) | |
tree | 358ff817974d0eb5c047aa28fe83a2c1871f756b /sw/source/uibase/shells/txtcrsr.cxx | |
parent | cd9e2ecba38c31eb30e05d3ee2c9f4629dd89d40 (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/uibase/shells/txtcrsr.cxx')
-rw-r--r-- | sw/source/uibase/shells/txtcrsr.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sw/source/uibase/shells/txtcrsr.cxx b/sw/source/uibase/shells/txtcrsr.cxx index d33e34adaaf3..fa98cf0f1ec4 100644 --- a/sw/source/uibase/shells/txtcrsr.cxx +++ b/sw/source/uibase/shells/txtcrsr.cxx @@ -362,7 +362,7 @@ void SwTextShell::ExecMoveMisc(SfxRequest &rReq) break; case FN_TO_HEADER: rSh.MoveCrsr(); - if ( FRMTYPE_HEADER & rSh.GetFrmType(0,false) ) + if ( FrmTypeFlags::HEADER & rSh.GetFrmType(0,false) ) rSh.SttPg(); else { @@ -374,7 +374,7 @@ void SwTextShell::ExecMoveMisc(SfxRequest &rReq) break; case FN_TO_FOOTER: rSh.MoveCrsr(); - if ( FRMTYPE_FOOTER & rSh.GetFrmType(0,false) ) + if ( FrmTypeFlags::FOOTER & rSh.GetFrmType(0,false) ) rSh.EndPg(); else { @@ -386,7 +386,7 @@ void SwTextShell::ExecMoveMisc(SfxRequest &rReq) break; case FN_FOOTNOTE_TO_ANCHOR: rSh.MoveCrsr(); - if ( FRMTYPE_FOOTNOTE & rSh.GetFrmType(0,false) ) + if ( FrmTypeFlags::FOOTNOTE & rSh.GetFrmType(0,false) ) rSh.GotoFtnAnchor(); else rSh.GotoFtnTxt(); |