From: undefine Date: Mon, 15 Nov 2004 22:22:29 +0000 (+0000) Subject: - patch to fix use within oo and desktop file for bkchem by X-Git-Tag: auto/ac/bkchem-0_8_1-1~1 X-Git-Url: http://git.pld-linux.org/?p=packages%2Fbkchem.git;a=commitdiff_plain;h=37b7344aa88688883e65b84b7546f19e2b9d6451 - patch to fix use within oo and desktop file for bkchem by piti@jabber.uznam.net.pl Changed files: bkchem-oo.patch -> 1.1 bkchem.desktop -> 1.1 --- diff --git a/bkchem-oo.patch b/bkchem-oo.patch new file mode 100644 index 0000000..6d1cdee --- /dev/null +++ b/bkchem-oo.patch @@ -0,0 +1,13 @@ +*** bkchem/plugins/openoffice.py~ 2004-09-10 17:07:56.000000000 +0200 +--- bkchem/plugins/openoffice.py 2004-11-15 19:11:43.853178744 +0100 +*************** class OO_exporter( plugin.exporter): +*** 162,165 **** + for i in items: +! x1, y1, x2, y2, x3, y3 = map( self.paper.px_to_cm, self.paper.coords( i)) +! point_array = [(x1,y1), (x2,y2), (x3,y3)] + self.create_oo_polygon( point_array, page, style_name) +--- 162,165 ---- + for i in items: +! x1, y1, x2, y2, x3, y3, x4, y4 = map( self.paper.px_to_cm, self.paper.coords( i)) +! point_array = [(x1,y1), (x2,y2), (x3,y3), (x4, y4)] + self.create_oo_polygon( point_array, page, style_name) diff --git a/bkchem.desktop b/bkchem.desktop new file mode 100644 index 0000000..2df124c --- /dev/null +++ b/bkchem.desktop @@ -0,0 +1,12 @@ +[Desktop Entry] +Name=BKchem +Name[pl]=BKchem +Comment=Two-dimensional molecule drawing program +Comment[pl]=Program do rysowania dwuwymiarowych cząsteczek +#Icon=xdrawchem.png +Exec=bkchem +Terminal=false +Type=Application +Encoding=UTF-8 +Categories=Science;Chemistry; +# vi: encoding=utf-8