summaryrefslogtreecommitdiff
path: root/sc
diff options
context:
space:
mode:
authorNoel Power <noel.power@novell.com>2012-05-24 16:49:38 +0100
committerNoel Power <noel.power@novell.com>2012-05-25 11:34:05 +0100
commit112d94c67b9a27f0df1784ab8f88c051f466b04d (patch)
tree3e23c969d9729595fdd146485a12de64c62fee1f /sc
parentbc30ba74e880122b257cc6aa2965a79851fa4608 (diff)
Revert "WaE: variables set but unused"
This reverts commit d0dcf1d65c79c4c607a1ac24c0c57f4b1a935294.
Diffstat (limited to 'sc')
-rw-r--r--sc/source/core/data/global.cxx2
1 files changed, 2 insertions, 0 deletions
diff --git a/sc/source/core/data/global.cxx b/sc/source/core/data/global.cxx
index 6ecf6eca3510..c92238d06d11 100644
--- a/sc/source/core/data/global.cxx
+++ b/sc/source/core/data/global.cxx
@@ -1283,11 +1283,13 @@ void ScGlobal::ApplyShapeOrientationInfo( std::vector< OrientationInfo >& infos,
for ( int i = 0; i < it->maAddress.Column; ++i )
{
long nTwip = aViewData.GetDocument()->GetColWidth( i, it->maAddress.Sheet );
+ Point aTmpPos = pDevice->LogicToPixel( Point( nTwip, nTwip ), aTmpMode );
nWidth += ( nTwip * aViewData.GetPPTX() );
}
for ( int i = 0; i < it->maAddress.Row; ++i )
{
long nTwip = aViewData.GetDocument()->GetRowHeight( i, it->maAddress.Sheet );
+ Point aTmpPos = pDevice->LogicToPixel( Point( nTwip, nTwip ), aTmpMode );
nHeight += ( nTwip * aViewData.GetPPTY() );
}