From 4790ef5cb574650c418591566eeb0babc69db59e Mon Sep 17 00:00:00 2001 From: "Armin Le Grand (allotropia)" Date: Sat, 27 Jan 2024 15:04:06 +0100 Subject: ITEM: Cleanup some Pool stuff with Defaults Sorted out some methods at ItemPool which process Defaults to make more clear what is going on and what which method is doing. Change-Id: I2568d3e03d0a56a14b6fe4e04521e1a8e22c000b Reviewed-on: https://gerrit.libreoffice.org/c/core/+/162643 Tested-by: Jenkins Reviewed-by: Armin Le Grand --- starmath/source/smediteng.cxx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'starmath') diff --git a/starmath/source/smediteng.cxx b/starmath/source/smediteng.cxx index 9eac0863e3de..6ba9f23d25c4 100644 --- a/starmath/source/smediteng.cxx +++ b/starmath/source/smediteng.cxx @@ -139,7 +139,7 @@ void SmEditEngine::setSmItemPool(SfxItemPool* mpItemPool, const SvtLinguOptions& vcl::Font aFont = OutputDevice::GetDefaultFont(aFontData.nFontType, nLang, GetDefaultFontFlags::OnlyOne); aFont.SetColor(aTextColor); - mpItemPool->SetPoolDefaultItem(SvxFontItem(aFont.GetFamilyType(), aFont.GetFamilyName(), + mpItemPool->SetUserDefaultItem(SvxFontItem(aFont.GetFamilyType(), aFont.GetFamilyName(), aFont.GetStyleName(), aFont.GetPitch(), aFont.GetCharSet(), aFontData.nFontInfoId)); } @@ -148,11 +148,11 @@ void SmEditEngine::setSmItemPool(SfxItemPool* mpItemPool, const SvtLinguOptions& SvxFontHeightItem aFontHeight( aDefaultDevice->LogicToPixel(Size(0, 11), MapMode(MapUnit::MapPoint)).Height(), 100, EE_CHAR_FONTHEIGHT); - mpItemPool->SetPoolDefaultItem(aFontHeight); + mpItemPool->SetUserDefaultItem(aFontHeight); aFontHeight.SetWhich(EE_CHAR_FONTHEIGHT_CJK); - mpItemPool->SetPoolDefaultItem(aFontHeight); + mpItemPool->SetUserDefaultItem(aFontHeight); aFontHeight.SetWhich(EE_CHAR_FONTHEIGHT_CTL); - mpItemPool->SetPoolDefaultItem(aFontHeight); + mpItemPool->SetUserDefaultItem(aFontHeight); } /* vim:set shiftwidth=4 softtabstop=4 expandtab cinoptions=b1,g0,N-s cinkeys+=0=break: */ -- cgit