Skip to content

Commit

Permalink
InkscapeExtension: Allow both, adding and replacing to current visicu…
Browse files Browse the repository at this point in the history
…t's content. Concerning issue #173
  • Loading branch information
t-oster committed Aug 4, 2013
1 parent 25ea4c9 commit db30c9a
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion tools/inkscape_extension/visicut_export.inx
Expand Up @@ -3,7 +3,7 @@
<_name>Add to VisiCut</_name>
<id>visicut.export</id>
<dependency type="executable" location="extensions">visicut_export.py</dependency>
<param name="import" type="boolean" _gui-hidden="true">true</param>
<param name="import" type="boolean" gui-hidden="true">true</param>
<effect needs-live-preview="false">
<object-type>path</object-type>
<effects-menu>
Expand Down
2 changes: 1 addition & 1 deletion tools/inkscape_extension/visicut_export.py
Expand Up @@ -166,7 +166,7 @@ def stripSVG_inkscape(src,dest,elements):
import socket
s=socket.socket()
s.connect(("localhost", SINGLEINSTANCEPORT))
if (IMPORT == "true"):
if (IMPORT == "true" or IMPORT == true or IMPORT == "\"true\""):
s.send("@"+filename+".svg\n")
else:
s.send(filename+".svg\n")
Expand Down
4 changes: 2 additions & 2 deletions tools/inkscape_extension/visicut_export_replace.inx
@@ -1,9 +1,9 @@
<?xml version="1.0" encoding="UTF-8"?>
<inkscape-extension xmlns="http://www.inkscape.org/namespace/inkscape/extension">
<_name>Open in VisiCut</_name>
<id>visicut.export</id>
<id>visicut.export_replace</id>
<dependency type="executable" location="extensions">visicut_export.py</dependency>
<param name="import" type="boolean" _gui-hidden="true">false</param>
<param name="import" type="boolean" gui-hidden="true">false</param>
<effect needs-live-preview="false">
<object-type>path</object-type>
<effects-menu>
Expand Down

0 comments on commit db30c9a

Please sign in to comment.