bkchem-user
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Bkchem-user] Stereo Wedge Bonds not exported to OOo format


From: Beda Kosata
Subject: Re: [Bkchem-user] Stereo Wedge Bonds not exported to OOo format
Date: Mon, 08 Nov 2004 13:21:11 +0000
User-agent: Mozilla Thunderbird 0.9 (X11/20041103)

Hi Alex,
thanks for the bug report. I send you a patch in attachment.
You can put it to the bkchem directory and run "patch -p0 <
openoffice.patch". It should run without problems.

Thanks again

                BEDA

p.s.- I hope to release a new version of bkchem next week so I will add
the fix to it
p.p.s. - the fix is only a 2-liner, I have forgotten that I have changed
wedge drawing from a triangle to a tetragon :)

Alex Thurgood wrote:
Further to my previous mail entitled "Multiple Objects not exported to
OOo format", I have managed to whittle down the problem to the export of
the "wedge" bond representation. All of the other stereo representations
can be exported to the OOo format.

I guess the problem then lies in the XSLT ?

Alex




_______________________________________________
Bkchem-user mailing list
address@hidden
http://lists.nongnu.org/mailman/listinfo/bkchem-user



--- bkchem/plugins/openoffice.py
+++ bkchem/plugins/openoffice.py
@@ -160,8 +160,8 @@
                           stroke_width=self.paper.px_to_cm( b.line_width))
       style_name = self.get_appropriate_style_name( s)
       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)]
+        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)
     elif b.type == 'h':
       for i in items:


reply via email to

[Prev in Thread] Current Thread [Next in Thread]