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 ) {