summaryrefslogtreecommitdiff
path: root/sd/source/core/stlsheet.cxx
diff options
context:
space:
mode:
authorRadek Doulik <rodo@novell.com>2012-05-04 15:25:02 +0200
committerRadek Doulik <rodo@novell.com>2012-05-04 15:29:31 +0200
commit57e21cb5e7b20a0c886475eb49e5d17f8dae527d (patch)
tree5b2ab7dfe8f9b9fb52173f7a1e9ceb0209439d23 /sd/source/core/stlsheet.cxx
parent7ead068be9f865327da7aef1cdc01614f25fc4a6 (diff)
removed unwanted/bad cast, fixes n#759178
Change-Id: I37d19086435a39c7090008158397e6e7fddee5ba
Diffstat (limited to 'sd/source/core/stlsheet.cxx')
-rw-r--r--sd/source/core/stlsheet.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/sd/source/core/stlsheet.cxx b/sd/source/core/stlsheet.cxx
index 05058e2068c3..08fe4dc5b75d 100644
--- a/sd/source/core/stlsheet.cxx
+++ b/sd/source/core/stlsheet.cxx
@@ -615,7 +615,7 @@ void SdStyleSheet::AdjustToFontHeight(SfxItemSet& rSet, sal_Bool bOnlyMissingIte
const SvxLRSpaceItem& rLRItem = (const SvxLRSpaceItem&)pCurSet->Get(EE_PARA_LRSPACE);
double fIndentFraction = double(rLRItem.GetTxtLeft()) / nOldHeight;
SvxLRSpaceItem aNewLRItem(rLRItem);
- aNewLRItem.SetTxtLeft((sal_uInt16)(fIndentFraction * nNewHeight));
+ aNewLRItem.SetTxtLeft(fIndentFraction * nNewHeight);
double fFirstIndentFraction = double(rLRItem.GetTxtFirstLineOfst()) / nOldHeight;
aNewLRItem.SetTxtFirstLineOfst((short)(fFirstIndentFraction * nNewHeight));
rSet.Put(aNewLRItem);