[Libreoffice-commits] .: sc/source
David Tardon
dtardon at kemper.freedesktop.org
Thu Feb 17 01:27:50 PST 2011
sc/source/ui/view/output2.cxx | 6 +-----
1 file changed, 1 insertion(+), 5 deletions(-)
New commits:
commit 56d472a2d547f1458cedd4f90b4b1cb426fc016e
Author: Kevin Hunter <hunteke at earlham.edu>
Date: Thu Feb 17 04:09:05 2011 -0500
cppcheck: remove redundant check.
If pInfo were NULL, would have crashed at the enclosing if-block that
deferences pInfo->nRotateDir.
diff --git a/sc/source/ui/view/output2.cxx b/sc/source/ui/view/output2.cxx
index 52a608b..0a3590b 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
{
More information about the Libreoffice-commits
mailing list