diff options
-rw-r--r-- | sw/source/uibase/wrtsh/delete.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sw/source/uibase/wrtsh/delete.cxx b/sw/source/uibase/wrtsh/delete.cxx index 27edcce0822c..e4833ae2d4dc 100644 --- a/sw/source/uibase/wrtsh/delete.cxx +++ b/sw/source/uibase/wrtsh/delete.cxx @@ -210,11 +210,11 @@ long SwWrtShell::DelLeft() else { // If we are just to the right to a fieldmark, then remove it completely - const SwPosition* aCurPos = GetCursor()->GetPoint(); - SwPosition aPrevChar(*aCurPos); + const SwPosition* pCurPos = GetCursor()->GetPoint(); + SwPosition aPrevChar(*pCurPos); --aPrevChar.nContent; sw::mark::IFieldmark* pFm = getIDocumentMarkAccess()->getFieldmarkFor(aPrevChar); - if (pFm && pFm->GetMarkEnd() == *aCurPos) + if (pFm && pFm->GetMarkEnd() == *pCurPos) { getIDocumentMarkAccess()->deleteMark(pFm); return 1; |