diff options
author | Oliver Specht <os@openoffice.org> | 2001-03-28 10:56:00 +0000 |
---|---|---|
committer | Oliver Specht <os@openoffice.org> | 2001-03-28 10:56:00 +0000 |
commit | f4c663cf7eae0625e93d491143583e0f6f1b5364 (patch) | |
tree | 883a9a57d4e66889015d93f4360339ec5a9cb416 /svx/source/dialog | |
parent | f5cf547828cdef9e31fc1c26b6154ceaf76c662d (diff) |
don't set relief if listbox is unselected
Diffstat (limited to 'svx/source/dialog')
-rw-r--r-- | svx/source/dialog/chardlg.cxx | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/svx/source/dialog/chardlg.cxx b/svx/source/dialog/chardlg.cxx index c21f120c77f2..d8e7c0902683 100644 --- a/svx/source/dialog/chardlg.cxx +++ b/svx/source/dialog/chardlg.cxx @@ -2,9 +2,9 @@ * * $RCSfile: chardlg.cxx,v $ * - * $Revision: 1.26 $ + * $Revision: 1.27 $ * - * last change: $Author: os $ $Date: 2001-03-27 14:00:02 $ + * last change: $Author: os $ $Date: 2001-03-28 11:56:00 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -4059,7 +4059,8 @@ void SvxCharEffectsPage::UpdatePreview_Impl() eMark |= bUnder ? EMPHASISMARK_POS_BELOW : EMPHASISMARK_POS_ABOVE; rFont.SetEmphasisMark( eMark ); short nRelief = m_aReliefLB.GetSelectEntryPos(); - rFont.SetRelief( (FontRelief)nRelief ); + if(LISTBOX_ENTRY_NOTFOUND != nRelief) + rFont.SetRelief( (FontRelief)nRelief ); rFont.SetOutline( StateToAttr( m_aOutlineBtn.GetState() ) ); rFont.SetShadow( StateToAttr( m_aShadowBtn.GetState() ) ); USHORT nCapsPos = m_aEffects2LB.GetSelectEntryPos(); |