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
This commit is contained in:
parent
93c731747f
commit
1691f31ab4
1 changed files with 12 additions and 4 deletions
|
@ -7,7 +7,7 @@
|
|||
* OpenOffice.org - a multi-platform office productivity suite
|
||||
*
|
||||
* $RCSfile: gridcell.cxx,v $
|
||||
* $Revision: 1.64 $
|
||||
* $Revision: 1.65 $
|
||||
*
|
||||
* This file is part of OpenOffice.org.
|
||||
*
|
||||
|
@ -685,15 +685,23 @@ void DbCellControl::ImplInitSettings(Window* pParent, sal_Bool bFont, sal_Bool b
|
|||
Window* pWindows[] = { m_pPainter,m_pWindow};
|
||||
if (bFont)
|
||||
{
|
||||
Font aFont( pParent->IsControlFont() ? pParent->GetControlFont() : pParent->GetPointFont());
|
||||
bool bIsControlFont( pParent->IsControlFont() );
|
||||
Font aFont( bIsControlFont ? pParent->GetControlFont() : pParent->GetPointFont() );
|
||||
aFont.SetTransparent( isTransparent() );
|
||||
|
||||
for (size_t i=0; i < sizeof(pWindows)/sizeof(pWindows[0]); ++i)
|
||||
{
|
||||
if ( pWindows[i] )
|
||||
{
|
||||
pWindows[i]->SetZoomedPointFont(aFont);
|
||||
pWindows[i]->SetZoom(pParent->GetZoom());
|
||||
if ( bIsControlFont )
|
||||
{
|
||||
pWindows[i]->SetControlFont( aFont );
|
||||
}
|
||||
else
|
||||
{
|
||||
pWindows[i]->SetZoom( pParent->GetZoom() );
|
||||
pWindows[i]->SetZoomedPointFont( aFont );
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue