summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sw/source/core/txtnode/fntcache.cxx5
1 files changed, 5 insertions, 0 deletions
diff --git a/sw/source/core/txtnode/fntcache.cxx b/sw/source/core/txtnode/fntcache.cxx
index ebcf923303fc..5b5d07113e5a 100644
--- a/sw/source/core/txtnode/fntcache.cxx
+++ b/sw/source/core/txtnode/fntcache.cxx
@@ -69,6 +69,9 @@ long SwFntObj::nPixWidth;
MapMode* SwFntObj::pPixMap = NULL;
OutputDevice* SwFntObj::pPixOut = NULL;
+namespace
+{
+
sal_uInt16 GetDefaultFontHeight( SwDrawTextInfo &rInf )
{
SwDocShell* pDocShell = rInf.GetShell()->GetDoc()->GetDocShell();
@@ -82,6 +85,8 @@ sal_uInt16 GetDefaultFontHeight( SwDrawTextInfo &rInf )
return (sal_uInt16)aDefaultFontItem.GetHeight();
}
+}
+
void SwFntCache::Flush( )
{
if ( pLastFont )