summaryrefslogtreecommitdiff
path: root/sd/source/ui/app/sdmod2.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'sd/source/ui/app/sdmod2.cxx')
-rw-r--r--sd/source/ui/app/sdmod2.cxx5
1 files changed, 3 insertions, 2 deletions
diff --git a/sd/source/ui/app/sdmod2.cxx b/sd/source/ui/app/sdmod2.cxx
index a9cafe31a765..52b3f7780844 100644
--- a/sd/source/ui/app/sdmod2.cxx
+++ b/sd/source/ui/app/sdmod2.cxx
@@ -864,16 +864,17 @@ std::unique_ptr<SfxTabPage> SdModule::CreateTabPage( sal_uInt16 nId, weld::Conta
std::optional<SfxStyleFamilies> SdModule::CreateStyleFamilies()
{
SfxStyleFamilies aStyleFamilies;
+ std::locale resLocale = SdModule::get()->GetResLocale();
aStyleFamilies.emplace_back(SfxStyleFamily::Para,
SdResId(STR_GRAPHICS_STYLE_FAMILY),
BMP_STYLES_FAMILY_GRAPHICS,
- RID_GRAPHICSTYLEFAMILY, SD_MOD()->GetResLocale());
+ RID_GRAPHICSTYLEFAMILY, resLocale);
aStyleFamilies.emplace_back(SfxStyleFamily::Pseudo,
SdResId(STR_PRESENTATIONS_STYLE_FAMILY),
BMP_STYLES_FAMILY_PRESENTATIONS,
- RID_PRESENTATIONSTYLEFAMILY, SD_MOD()->GetResLocale());
+ RID_PRESENTATIONSTYLEFAMILY, resLocale);
return aStyleFamilies;
}