diff --git a/sc/source/ui/app/inputhdl.cxx b/sc/source/ui/app/inputhdl.cxx index 026a5ba053ba..b629b51a810d 100644 --- a/sc/source/ui/app/inputhdl.cxx +++ b/sc/source/ui/app/inputhdl.cxx @@ -2992,8 +2992,8 @@ void ScInputHandler::SetReference( const ScRange& rRef, ScDocument* pDoc ) } else { - if ( ( rRef.aStart.Tab() != aCursorPos.Tab() || - rRef.aStart.Tab() != rRef.aEnd.Tab() ) && pDoc ) + if ( rRef.aStart.Tab() != aCursorPos.Tab() || + rRef.aStart.Tab() != rRef.aEnd.Tab() ) aRefStr = rRef.Format(SCA_VALID|SCA_TAB_3D, pDoc, aAddrDetails); else aRefStr = rRef.Format(SCA_VALID, pDoc, aAddrDetails);