cppcheck: remove redundant check.

If pInfo were NULL, would have crashed at the enclosing if-block that
deferences pInfo->nRotateDir.
This commit is contained in:
Kevin Hunter 2011-02-17 04:09:05 -05:00 committed by David Tardon
parent 4c7a5bee34
commit 427c9ebd41

View file

@ -3297,11 +3297,7 @@ void ScOutputData::DrawRotated(BOOL bPixelToLogic)
if (!bHidden)
{
long nOutWidth = nCellWidth - 1;
long nOutHeight;
if (pInfo)
nOutHeight = nCellHeight;
else
nOutHeight = (long) ( pDoc->GetRowHeight(nY,nTab) * nPPTY );
long nOutHeight = nCellHeight;
if ( bMerged ) // Zusammengefasst
{