coverity#1242429 Explicit null dereferenced

Change-Id: I30f65243995288008fbc41de76bd3f4e2d21b00e
This commit is contained in:
Caolán McNamara
2014-10-24 10:28:50 +01:00
parent 5da5340a9f
commit 66d105b10a

View File

@@ -190,10 +190,10 @@ LayoutToolbarMenu::LayoutToolbarMenu( SlideLayoutController& rController, const
sal_Int16 nColCount = 4;
switch( eMode )
{
default: assert(false); // can't happen, will crash later otherwise
case DrawViewMode_DRAW: pInfo = &standard[0]; break;
case DrawViewMode_HANDOUT: pInfo = &handout[0]; nColCount = 2; break;
case DrawViewMode_NOTES: pInfo = &notes[0]; nColCount = 1; break;
default: assert(false); // can't happen, will crash later otherwise
}
mpLayoutSet1->SetColCount( nColCount );