[Libreoffice-commits] core.git: sw/source
Julien Nabet
serval2412 at yahoo.fr
Thu Mar 28 04:41:17 PDT 2013
sw/source/core/crsr/crsrsh.cxx | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
New commits:
commit cf57e77ccc1776b8692cd458014036c671fe1078
Author: Julien Nabet <serval2412 at yahoo.fr>
Date: Mon Mar 25 23:20:36 2013 +0100
coverity#704345 Logically dead code
Change-Id: I72360ada3abedc75b2718742e8a038eb6d214f0c
Reviewed-on: https://gerrit.libreoffice.org/3047
Reviewed-by: Petr Mladek <pmladek at suse.cz>
Tested-by: Petr Mladek <pmladek at suse.cz>
diff --git a/sw/source/core/crsr/crsrsh.cxx b/sw/source/core/crsr/crsrsh.cxx
index 73c01be..581feeb 100644
--- a/sw/source/core/crsr/crsrsh.cxx
+++ b/sw/source/core/crsr/crsrsh.cxx
@@ -925,7 +925,8 @@ int SwCrsrShell::CompareCursor( CrsrCompareType eType ) const
int nRet = 0;
const SwPosition *pFirst = 0, *pSecond = 0;
const SwPaM *pCur = GetCrsr(), *pStk = pCrsrStk;
- if( CurrPtCurrMk != eType && pStk )
+ // cursor on stack is needed if we compare against stack
+ if( pStk || ( eType == CurrPtCurrMk ) )
{
switch ( eType)
{
More information about the Libreoffice-commits
mailing list