[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    koffice/karbon/widgets
From:       Tomislav Lukman <tomislav.lukman () ck ! t-com ! hr>
Date:       2005-02-28 22:36:29
Message-ID: 20050228223629.1E6C41487A () office ! kde ! org
[Download RAW message or body]

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


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic