aboutsummaryrefslogtreecommitdiffhomepage
path: root/lib/sisu/v4/urls.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/sisu/v4/urls.rb')
-rw-r--r--lib/sisu/v4/urls.rb12
1 files changed, 9 insertions, 3 deletions
diff --git a/lib/sisu/v4/urls.rb b/lib/sisu/v4/urls.rb
index 5e6bcc8a..e3671dcd 100644
--- a/lib/sisu/v4/urls.rb
+++ b/lib/sisu/v4/urls.rb
@@ -355,11 +355,17 @@ module SiSU_Urls
end
end
if x=~/--pdf\b/ \
- and @opt.act[:pdf][:set]==:on
+ and (@opt.act[:pdf][:set]==:on \
+ or @opt.act[:pdf_p][:set]==:on \
+ or @opt.act[:pdf_l][:set]==:on)
if x =~/portrait/
- show.pdf.portrait(x)
+ if @opt.act[:pdf_p][:set]==:on
+ show.pdf.portrait(x)
+ end
else
- show.pdf.landscape(x)
+ if @opt.act[:pdf_l][:set]==:on
+ show.pdf.landscape(x)
+ end
end
end
if x=~/--sisupod\b/ \