bugBKChem - Bugs: bug #15744, cut/paste bug?

 
 

bug #15744: cut/paste bug?

Submitted by:  david a thompson <thomp>
Submitted on:  Mon 13 Feb 2006 10:31:14 PM UTC  
 
Category: NoneSeverity: 3 - Normal
Item Group: NoneStatus: Fixed
Privacy: PublicAssigned to: Beda Kosata <beda>
Open/Closed: Closed

Add a New Comment(Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

Tue 14 Feb 2006 04:42:01 PM UTC, comment #1:

Thanks for the bugreport. The problem was very hard to find and very straightforward to fix. I believe this happens only when files are imported from CML. I have fixed it in version 0.11.3.

Beda Kosata <beda>
Project AdministratorIn charge of this item.
Mon 13 Feb 2006 10:31:14 PM UTC, original submission:

An aside: thanks for the great program!

On to the problem:

- bkchem-0.11.2 on Fedora Core 4

- cutting and pasting problem:

Steps to reproduce:

1. start bkchem:

[root@alanoffice bkchem-0.11.2]# python /home/thomp/downloads/chemistry/bkchem-0.11.2/bkchem/bkchem.py &

2. load D-glyceraldehyde-3-phosphate.svg (attached)

3. Edit -> Select All

4. Edit -> Copy

5. File -> New

6. Move to new tab

7. Edit -> Paste
note: there probably is another bug buried somewhere because sometimes Paste is active and sometimes its inactivated in this pulldown (if it's inactivated, bug can be reproduced by going back, selecting and copying again and then returning to the new tab)

Error: 1
cannot remove non-existing edge Exception in Tk callback
Function: <function <lambda> at 0xb77f2f44> (type: <type 'function'>)
Args: ()
Traceback (innermost last):
File "/home/thomp/downloads/chemistry/bkchem-0.11.2/bkchem/Pmw.py", line 1788, in _call_
return apply(self.func, args)
File "/home/thomp/downloads/chemistry/bkchem-0.11.2/bkchem/main.py", line 209, in <lambda>
( ("Edit"), 'command', ('Paste'), '(C-y)', _("Paste the content of clipboard to current paper"), lambda : self.paper.paste_clipboard( None), lambda : self._clipboard),
File "/home/thomp/downloads/chemistry/bkchem-0.11.2/bkchem/paper.py", line 1097, in paste_clipboard
self.handle_overlap()
File "/home/thomp/downloads/chemistry/bkchem-0.11.2/bkchem/paper.py", line 820, in handle_overlap
deleted.extend( mol.handle_overlap())
File "/home/thomp/downloads/chemistry/bkchem-0.11.2/bkchem/molecule.py", line 455, in handle_overlap
self.delete_bond( b)
File "/home/thomp/downloads/chemistry/bkchem-0.11.2/bkchem/molecule.py", line 277, in delete_bond
self.disconnect_edge( item)
File "/home/thomp/downloads/chemistry/bkchem-0.11.2/bkchem/oasa/oasa/graph/graph.py", line 170, in disconnect_edge
v2.remove_edge_and_neighbor( e)
File "/home/thomp/downloads/chemistry/bkchem-0.11.2/bkchem/oasa/oasa/graph/vertex.py", line 67, in remove_edge_and_neighbor
raise "cannot remove non-existing edge", e
cannot remove non-existing edge: bond between atom96218 atom96218

david a thompson <thomp>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach File(s):
   
   
Comment:
   

Attached Files
file #1995:  D-glyceraldehyde-3-phosphate.svg added by thomp (6KiB - image/svg+xml - d-glyceraldehyde-3-phosphate: svg file generated by bkchem from cml file generated by openbabel)

 

Depends on the following items: None found

Items that depend on this one: None found

 

CC list is empty

 

Do you think this task is very important?
If so, you can click here to add your encouragement to it.
This task has 0 encouragements so far.

Only logged-in users can vote.

 

Please enter the title of George Orwell's famous dystopian book (it's a date):

 

 

Follow 4 latest changes.

Date Changed By Updated Field Previous Value => Replaced By
Tue 14 Feb 2006 04:42:01 PM UTCbedaStatusNone=>Fixed
  Assigned toNone=>beda
  Open/ClosedOpen=>Closed
Mon 13 Feb 2006 10:31:14 PM UTCthompAttached File-=>Added D-glyceraldehyde-3-phosphate.svg, #3401

Back to the top


Powered by Savane 3.1-cleanup1