summaryrefslogtreecommitdiff
path: root/starmath
diff options
context:
space:
mode:
Diffstat (limited to 'starmath')
-rw-r--r--starmath/source/document.cxx2
-rw-r--r--starmath/source/format.cxx2
2 files changed, 2 insertions, 2 deletions
diff --git a/starmath/source/document.cxx b/starmath/source/document.cxx
index 9ac77701eb65..51dfe5f5f308 100644
--- a/starmath/source/document.cxx
+++ b/starmath/source/document.cxx
@@ -335,7 +335,7 @@ void SetEditEngineDefaultFonts(SfxItemPool &rEditEngineItemPool)
const FontDta &rFntDta = aTable[i];
LanguageType nLang = (LANGUAGE_NONE == rFntDta.nLang) ?
rFntDta.nFallbackLang : rFntDta.nLang;
- Font aFont = Application::GetDefaultDevice()->GetDefaultFont(
+ Font aFont = OutputDevice::GetDefaultFont(
rFntDta.nFontType, nLang, DEFAULTFONT_FLAGS_ONLYONE );
rEditEngineItemPool.SetPoolDefaultItem(
SvxFontItem( aFont.GetFamily(), aFont.GetName(),
diff --git a/starmath/source/format.cxx b/starmath/source/format.cxx
index 79510805370b..1bc95d0d4445 100644
--- a/starmath/source/format.cxx
+++ b/starmath/source/format.cxx
@@ -87,7 +87,7 @@ OUString GetDefaultFontName( LanguageType nLang, sal_uInt16 nIdent )
SAL_WARN("starmath", "unknown script-type");
}
- return Application::GetDefaultDevice()->GetDefaultFont(
+ return OutputDevice::GetDefaultFont(
pTable[ nIdent ], nLang,
DEFAULTFONT_FLAGS_ONLYONE ).GetName();
}