Kaydet (Commit) 4ce12cf8 authored tarafından Caolán McNamara's avatar Caolán McNamara

coverity#738958 Unused pointer value

Change-Id: Ic0c7f1c3ccb17f11135facda9197f8dc82436549
üst aa356e60
......@@ -3303,12 +3303,11 @@ void ImpEditEngine::UpdateSelections()
// taken into account!
sal_Int32 nPara = rInf.GetPosition();
ParaPortion* pPPortion = GetParaPortions().SafeGetObject( nPara );
if ( !pPPortion ) // Last paragraph
if (!GetParaPortions().SafeGetObject(nPara)) // Last paragraph
{
nPara = GetParaPortions().Count()-1;
pPPortion = GetParaPortions()[nPara];
}
OSL_ENSURE( pPPortion, "Empty Document in UpdateSelections ?" );
assert(GetParaPortions()[nPara] && "Empty Document in UpdateSelections ?");
// Do not end up from a hidden paragraph:
sal_Int32 nCurPara = nPara;
sal_Int32 nLastPara = GetParaPortions().Count()-1;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment