diff --git a/lib/svggvs/target.rb b/lib/svggvs/target.rb index 248632a..4fa0db6 100644 --- a/lib/svggvs/target.rb +++ b/lib/svggvs/target.rb @@ -25,7 +25,11 @@ module SVGGVS current_parent = current_parent.parent end else - layer['style'] = 'display:none' + layer['style'] = if layer['inkscape:label'].include?('(visible)') + '' + else + 'display:none' + end end end end diff --git a/lib/svggvs/version.rb b/lib/svggvs/version.rb index bf07a32..a764edd 100644 --- a/lib/svggvs/version.rb +++ b/lib/svggvs/version.rb @@ -1,3 +1,3 @@ module Svggvs - VERSION = "0.0.1" + VERSION = "0.0.2" end