[Libreoffice-commits] .: sd/source

Radek Doulík rodo at kemper.freedesktop.org
Fri May 4 06:29:36 PDT 2012


 sd/source/core/stlsheet.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 57e21cb5e7b20a0c886475eb49e5d17f8dae527d
Author: Radek Doulik <rodo at novell.com>
Date:   Fri May 4 15:25:02 2012 +0200

    removed unwanted/bad cast, fixes n#759178
    
    Change-Id: I37d19086435a39c7090008158397e6e7fddee5ba

diff --git a/sd/source/core/stlsheet.cxx b/sd/source/core/stlsheet.cxx
index 05058e2..08fe4dc 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);


More information about the Libreoffice-commits mailing list