summaryrefslogtreecommitdiff
path: root/sw/source/uibase/docvw/edtwin.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'sw/source/uibase/docvw/edtwin.cxx')
-rw-r--r--sw/source/uibase/docvw/edtwin.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/sw/source/uibase/docvw/edtwin.cxx b/sw/source/uibase/docvw/edtwin.cxx
index 1ac0c293d2ac..3532441517a8 100644
--- a/sw/source/uibase/docvw/edtwin.cxx
+++ b/sw/source/uibase/docvw/edtwin.cxx
@@ -1487,7 +1487,7 @@ void SwEditWin::KeyInput(const KeyEvent &rKEvt)
if ((rKeyCode.IsMod1() && rKeyCode.IsMod2()) && ((rKeyCode.GetCode() == KEY_PAGEUP) || (rKeyCode.GetCode() == KEY_PAGEDOWN)))
{
const bool bNext = rKeyCode.GetCode()==KEY_PAGEDOWN;
- const SwFieldType* pFieldType = rSh.GetFieldType( 0, RES_POSTITFLD );
+ const SwFieldType* pFieldType = rSh.GetFieldType( 0, SwFieldIds::Postit );
rSh.MoveFieldType( pFieldType, bNext );
return;
}
@@ -4169,7 +4169,7 @@ void SwEditWin::MouseMove(const MouseEvent& _rMEvt)
if( rSh.GetContentAtPos( aDocPt, aContentAtPos, false, &aFieldRect ) )
{
const SwField* pField = aContentAtPos.aFnd.pField;
- if (pField->Which()== RES_POSTITFLD)
+ if (pField->Which()== SwFieldIds::Postit)
{
m_rView.GetPostItMgr()->SetShadowState(reinterpret_cast<const SwPostItField*>(pField),false);
}