Kaydet (Commit) 1691f31a authored tarafından Kurt Zenker's avatar Kurt Zenker

INTEGRATION: CWS dba30b (1.63.166); FILE MERGED

2008/04/15 22:02:25 fs 1.63.166.2: RESYNC: (1.63-1.64); FILE MERGED
2008/03/10 12:58:04 fs 1.63.166.1: #i84924# proper font calculation when initializing the fonts in the single windows
üst 93c73174
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
* OpenOffice.org - a multi-platform office productivity suite * OpenOffice.org - a multi-platform office productivity suite
* *
* $RCSfile: gridcell.cxx,v $ * $RCSfile: gridcell.cxx,v $
* $Revision: 1.64 $ * $Revision: 1.65 $
* *
* This file is part of OpenOffice.org. * This file is part of OpenOffice.org.
* *
...@@ -685,15 +685,23 @@ void DbCellControl::ImplInitSettings(Window* pParent, sal_Bool bFont, sal_Bool b ...@@ -685,15 +685,23 @@ void DbCellControl::ImplInitSettings(Window* pParent, sal_Bool bFont, sal_Bool b
Window* pWindows[] = { m_pPainter,m_pWindow}; Window* pWindows[] = { m_pPainter,m_pWindow};
if (bFont) if (bFont)
{ {
Font aFont( pParent->IsControlFont() ? pParent->GetControlFont() : pParent->GetPointFont()); bool bIsControlFont( pParent->IsControlFont() );
Font aFont( bIsControlFont ? pParent->GetControlFont() : pParent->GetPointFont() );
aFont.SetTransparent( isTransparent() ); aFont.SetTransparent( isTransparent() );
for (size_t i=0; i < sizeof(pWindows)/sizeof(pWindows[0]); ++i) for (size_t i=0; i < sizeof(pWindows)/sizeof(pWindows[0]); ++i)
{ {
if ( pWindows[i] ) if ( pWindows[i] )
{ {
pWindows[i]->SetZoomedPointFont(aFont); if ( bIsControlFont )
pWindows[i]->SetZoom(pParent->GetZoom()); {
pWindows[i]->SetControlFont( aFont );
}
else
{
pWindows[i]->SetZoom( pParent->GetZoom() );
pWindows[i]->SetZoomedPointFont( aFont );
}
} }
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment