From kde-commits Sat Dec 07 08:26:43 2002 From: Rob Buis Date: Sat, 07 Dec 2002 08:26:43 +0000 To: kde-commits Subject: koffice/karbon X-MARC-Message: https://marc.info/?l=kde-commits&m=103924968232505 CVS commit by buis: drawRect also does fillPath, strokePath automatically now. M +0 -1 dockers/vdocumentdocker.cc 1.29 M +2 -0 render/vkopainter.cc 1.98 M +0 -7 widgets/vstrokefillpreview.cc 1.43 --- koffice/karbon/dockers/vdocumentdocker.cc:1.28 Fri Dec 6 23:04:43 2002 @@ -169,7 +169,6 @@ VStroke stroke( c, 0L, 1.0 / scaleFactor ); p.setPen( stroke ); p.drawRect( KoRect( 2, 2, m_document->width() - 2, m_document->height() - 2 ) ); - p.strokePath(); m_document->draw( &p, &rect ); p.end(); } --- koffice/karbon/render/vkopainter.cc:1.97 Fri Dec 6 21:55:32 2002 @@ -907,6 +907,8 @@ lineTo( r.bottomRight() ); lineTo( r.bottomLeft() ); lineTo( r.topLeft() ); + fillPath(); + strokePath(); } void --- koffice/karbon/widgets/vstrokefillpreview.cc:1.42 Fri Dec 6 21:55:32 2002 @@ -320,13 +320,6 @@ m_painter->drawRect( KoRect( FILL_TOPX, FILL_TOPY, FILL_BOTTOMX - FILL_TOPX, FILL_BOTTOMY - FILL_TOPY ) ); - /*m_painter->newPath(); - m_painter->moveTo( KoPoint( FILL_TOPX, FILL_TOPY ) ); - m_painter->lineTo( KoPoint( FILL_BOTTOMX, FILL_TOPY ) ); - m_painter->lineTo( KoPoint( FILL_BOTTOMX, FILL_BOTTOMY ) ); - m_painter->lineTo( KoPoint( FILL_TOPX, FILL_BOTTOMY ) ); - m_painter->lineTo( KoPoint( FILL_TOPX, FILL_TOPY ) );*/ - m_painter->fillPath(); } else {