From kde-commits Mon Feb 28 22:36:29 2005 From: Tomislav Lukman Date: Mon, 28 Feb 2005 22:36:29 +0000 To: kde-commits Subject: koffice/karbon/widgets Message-Id: <20050228223629.1E6C41487A () office ! kde ! org> X-MARC-Message: https://marc.info/?l=kde-commits&m=110963020203767 CVS commit by lukman: Problematic switch - case fixed using breaks. The widget again displays correct information. M +6 -0 vsmallpreview.cc 1.4 --- koffice/karbon/widgets/vsmallpreview.cc #1.3:1.4 @@ -116,4 +116,5 @@ VSmallPreview::drawFill( const VFill &f } fill.setColor( f.color() ); + break; } case VFill::grad: @@ -122,4 +123,5 @@ VSmallPreview::drawFill( const VFill &f fill.setType( VFill::grad ); m_fillLabel->setText( i18n( "Fill: Gradient") ); + break; } @@ -129,4 +131,5 @@ VSmallPreview::drawFill( const VFill &f fill.setType( VFill::patt ); m_fillLabel->setText( i18n( "Fill: Pattern") ); + break; } default: //None or unknown @@ -189,4 +192,5 @@ VSmallPreview::drawStroke( const VStroke } fill.setColor( s.color() ); + break; } case VStroke::grad: @@ -195,4 +199,5 @@ VSmallPreview::drawStroke( const VStroke fill.setType( VFill::grad ); m_strokeLabel->setText( i18n( "Stroke: Gradient") ); + break; } case VStroke::patt: @@ -201,4 +206,5 @@ VSmallPreview::drawStroke( const VStroke fill.setType( VFill::patt ); m_strokeLabel->setText( i18n( "Stroke: Pattern") ); + break; } default: //None or unknown