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

List:       koffice-devel
Subject:    Karbon: rounded rectangle in SVG
From:       "Ariya Hidayat" <ariya () kde ! org>
Date:       2006-06-05 12:42:10
Message-ID: ba035dd10606050542h503df511va552042b64072209 () mail ! gmail ! com
[Download RAW message or body]

Rounded rectangle in SVG file is not imported correctly by Karbon,
i.e. it ends up like normal non-rounded rectangle. The attached patch
seems to fix the problem.

OK to commit (to 1.5 branch) ?

["rounded.patch" (text/x-patch)]

Index: svgimport.cc
===================================================================
--- svgimport.cc	(revision 548377)
+++ svgimport.cc	(working copy)
@@ -1289,7 +1289,9 @@
 		double y		= parseUnit( b.attribute( "y" ), false, true, m_outerRect );
 		double width	= parseUnit( b.attribute( "width" ), true, false, m_outerRect );
 		double height	= parseUnit( b.attribute( "height" ), false, true, m_outerRect );
-		obj = new VRectangle( 0L, KoPoint( x, height + y ) , width, height );
+		double rx       = parseUnit( b.attribute( "rx" ) );
+		double ry       = parseUnit( b.attribute( "ry" ) );
+		obj = new VRectangle( 0L, KoPoint( x, height + y ) , width, height, rx, ry );
 	}
 	else if( b.tagName() == "ellipse" )
 	{


_______________________________________________
koffice-devel mailing list
koffice-devel@kde.org
https://mail.kde.org/mailman/listinfo/koffice-devel


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

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