diff options
Diffstat (limited to 'svx/source/sidebar/text/TextCharacterSpacingControl.cxx')
-rw-r--r-- | svx/source/sidebar/text/TextCharacterSpacingControl.cxx | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/svx/source/sidebar/text/TextCharacterSpacingControl.cxx b/svx/source/sidebar/text/TextCharacterSpacingControl.cxx index 72ef14ce8bf7..58c25e76bef0 100644 --- a/svx/source/sidebar/text/TextCharacterSpacingControl.cxx +++ b/svx/source/sidebar/text/TextCharacterSpacingControl.cxx @@ -87,7 +87,7 @@ void TextCharacterSpacingControl::Initialize() SfxItemState eState = SfxViewFrame::Current()->GetBindings().GetDispatcher()->QueryState(SID_ATTR_CHAR_KERNING, pItem); const SvxKerningItem* pKerningItem = static_cast<const SvxKerningItem*>(pItem); - long nKerning = 0; + tools::Long nKerning = 0; if(pKerningItem) nKerning = pKerningItem->GetValue(); @@ -113,7 +113,7 @@ void TextCharacterSpacingControl::Initialize() { MapUnit eUnit = GetCoreMetric(); MapUnit eOrgUnit = eUnit; - long nBig = mxEditKerning->normalize(nKerning); + tools::Long nBig = mxEditKerning->normalize(nKerning); nKerning = OutputDevice::LogicToLogic(nBig, eOrgUnit, MapUnit::MapPoint); mxEditKerning->set_value(nKerning, FieldUnit::NONE); } @@ -129,14 +129,14 @@ void TextCharacterSpacingControl::Initialize() } } -void TextCharacterSpacingControl::ExecuteCharacterSpacing(long nValue, bool bClose) +void TextCharacterSpacingControl::ExecuteCharacterSpacing(tools::Long nValue, bool bClose) { MapUnit eUnit = GetCoreMetric(); - long nSign = (nValue < 0) ? -1 : 1; + tools::Long nSign = (nValue < 0) ? -1 : 1; nValue = nValue * nSign; - long nVal = OutputDevice::LogicToLogic(nValue, MapUnit::MapPoint, eUnit); + tools::Long nVal = OutputDevice::LogicToLogic(nValue, MapUnit::MapPoint, eUnit); short nKern = (nValue == 0) ? 0 : static_cast<short>(mxEditKerning->denormalize(nVal)); SvxKerningItem aKernItem(nSign * nKern, SID_ATTR_CHAR_KERNING); |