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

List:       kde-commits
Subject:    koffice/lib/kformula
From:       Waldo Bastian <bastian () kde ! org>
Date:       2004-02-01 22:46:30
Message-ID: 20040201224630.3CAA5991F () office ! kde ! org
[Download RAW message or body]

CVS commit by waba: 

Don't crash when the denominator is temporarily 0. (BR52293)


  M +3 -1      fractionelement.cc   1.41


--- koffice/lib/kformula/fractionelement.cc  #1.40:1.41
@@ -158,7 +158,9 @@ void FractionElement::draw( QPainter& pa
                     style.convertTextStyleFraction( tstyle ),
                     style.convertIndexStyleUpper( istyle ), myPos);
+    if (denominator) { // Can be temporarily 0 see FractionElement::remove
     denominator->draw(painter, r, style,
                       style.convertTextStyleFraction( tstyle ),
                       style.convertIndexStyleLower( istyle ), myPos);
+    }
 
     if ( withLine ) {


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

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