From 991296bdbfe95325d630c491f07b868b7e58a165 Mon Sep 17 00:00:00 2001 From: John Bintz Date: Sun, 17 Nov 2013 12:04:45 -0500 Subject: [PATCH] layers marked as (visible) will always be shown --- lib/svggvs/target.rb | 6 +++++- lib/svggvs/version.rb | 2 +- 2 files changed, 6 insertions(+), 2 deletions(-) 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