-
Notifications
You must be signed in to change notification settings - Fork 27
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Style properties not read correctly if value is zero #674
Comments
I encountered with a similar issue in infobox values. Apparently, if there is an infobox with value 0, it's saved in the file, but while loading, those values are lost somewhere and infoboxes seem as empty. Probably, there is a similar bug during load operation. |
@msalihaltun See if this straightforward to fix for this release. @hasanbalci should know. |
Nodes with label "0" are saved but can't be reloaded either. In javascript, if we use the value |
"0" style values should be fixed now but labels are not fixed. We take the nwt file as an xml file while loading and call |
Nevermind, apperantly my changes had many unexpected side affects. Reverted for now. It is my mistake, I didn't run the tests locally. |
It should be fine now. @hasanbalci please test and confirm. |
Also I created an issue about label values here. |
|
|
Labels will be fixed in libsbgn.js. The rest seems fixed, so closing. |
While reading style properties of the graph elements, if the property value is zero it is ignored because of the buggy code here. That if statement should differentiate "0" value from "undefined". As a result, those properties are not written to the file during save operation.
The text was updated successfully, but these errors were encountered: