From kde-commits Sun Feb 01 22:46:30 2004 From: Waldo Bastian Date: Sun, 01 Feb 2004 22:46:30 +0000 To: kde-commits Subject: koffice/lib/kformula Message-Id: <20040201224630.3CAA5991F () office ! kde ! org> X-MARC-Message: https://marc.info/?l=kde-commits&m=107567559521989 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 ) {