Skip to content
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

Fix for import svg image leading to unattached dragtool #7

Merged
merged 3 commits into from
Feb 1, 2016

Conversation

ibrierley
Copy link
Contributor

If you import an svg image, it loads it, but then the dragtool appears on its own, not connected to the newly imported element.

When the element is imported, it isn't known 'what' this element is, so the change is to make the method return the element, so we can then use it, to 'select it, once the load is complete.

I cannot see any other methods reliant on the return value of this (which previously returned true rather than the element).

@ibrierley ibrierley changed the title Fix for import svg image leading to vacant dragtool element. Fix for import svg image leading to unattached dragtool Jul 16, 2015
@@ -5083,7 +5083,8 @@ this.importSvgString = function(xmlString) {
return false;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please change this to return null

Changed docs and return value to match if unsuccessful
codedread added a commit that referenced this pull request Feb 1, 2016
Fix for import svg image leading to unattached dragtool
@codedread codedread merged commit 6715e62 into SVG-Edit:master Feb 1, 2016
@codedread
Copy link
Member

Sorry for the delay on this!

This pull request was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants