From f4c663cf7eae0625e93d491143583e0f6f1b5364 Mon Sep 17 00:00:00 2001 From: Oliver Specht Date: Wed, 28 Mar 2001 10:56:00 +0000 Subject: don't set relief if listbox is unselected --- svx/source/dialog/chardlg.cxx | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'svx/source/dialog') 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(); -- cgit