Bug 233494 - molecule editor does not correctly create bonds
Summary: molecule editor does not correctly create bonds
Status: RESOLVED UPSTREAM
Alias: None
Product: kalzium
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: Ubuntu Linux
: NOR normal
Target Milestone: ---
Assignee: Kalzium Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-04-06 15:29 UTC by Philip Muškovac
Modified: 2010-04-25 21:25 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Philip Muškovac 2010-04-06 15:29:21 UTC
Version:           2.3.80 (using KDE 4.4.2)
Compiler:          gcc 4:4.4.3-1ubuntu1 
OS:                Linux
Installed from:    Ubuntu Packages

When using kalzium's molecule editor to create a molecule, you have the option for 'bond order', but it only generates single bonds. In order to get double bonds and triple bonds you must edit the raw xml. Once the file is edited, the bonds do show up and perform correctly in kalzium. All that needs to be done is for kalzium to check which value of the bond order is selected before creating the bond. This should be a quick, simple fix, but would be exceedingly helpful.



TEST CASE:

1) Open up Kalzium
2) Click on "Molecular Editor" in tool bar
3) Go to "Edit" tab
4) Change "Bond Order" dropdown from "Single" to "Double" or "Triple"
5) Click and drag to create a new bond in the main window

EXPECTED RESULT:
A single bond should look like two spheres with a single stick connecting them. A double bond should have two sticks connecting the spheres and a triple bond, three.

ACTUAL RESULT:
 All bonds look like single bonds.

https://bugs.launchpad.net/ubuntu/+source/kdeedu/+bug/507478
Comment 1 Marcus D. Hanwell 2010-04-11 02:23:13 UTC
OK - I see what is happening. I committed changes to make Kalzium use the system Avogadro library (optionally). So this will work in Kalzium, but will require a change I will try to get into Avogadro 1.0.1 to carry the setting through to the library.
Comment 2 Marcus D. Hanwell 2010-04-25 21:25:43 UTC
Marking as resolved upstream (I am upstream too ;-) ). This was a bug in the state settings of the draw tool (it was ignoring the bond order), and the fixes I pushed are in the 1.0 branch and master. This will make it into Avogadro 1.0.1+, I plan on tagging the release next week and so hopefully KDE 4.5 will be linked against this version.