From 427c9ebd415cde6f87b79c577cc99a52d5486508 Mon Sep 17 00:00:00 2001 From: Kevin Hunter Date: Thu, 17 Feb 2011 04:09:05 -0500 Subject: [PATCH] cppcheck: remove redundant check. If pInfo were NULL, would have crashed at the enclosing if-block that deferences pInfo->nRotateDir. --- sc/source/ui/view/output2.cxx | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/sc/source/ui/view/output2.cxx b/sc/source/ui/view/output2.cxx index ca36d7bcb5d6..54cfcf147a4f 100644 --- a/sc/source/ui/view/output2.cxx +++ b/sc/source/ui/view/output2.cxx @@ -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 {