Skip to content

Commit e30e7a4

Browse files
committed
FIXED: presentation API
1 parent 649188d commit e30e7a4

File tree

4 files changed

+5
-3
lines changed

4 files changed

+5
-3
lines changed

documentation/presentation.pl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
[ clear_and_box_at(0, 0, "2"), ],
2727

2828
[
29-
load(0, 0, 'path/file.asciio'),
29+
load(0, 0, './default_stencil.asciio'),
3030
box(10, 20, 'title', '3', 0),
3131
],
3232

lib/App/Asciio/Actions/File.pm

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,8 @@ if(defined $file_name && $file_name ne q[])
155155
my ($basename, $path, $ext) = File::Basename::fileparse(find_installed('App::Asciio'), ('\..*')) ;
156156
my $setup_path = $path . $basename . '/setup/' ;
157157

158-
$asciio->setup([$setup_path . 'setup.ini', ] ) ;
158+
%object_override = (WARN => sub { print STDERR "@_\n" }, ACTION_VERBOSE => sub { print STDERR "$_[0]\n" ; } ) ;
159+
$asciio->setup([$setup_path . 'setup.ini', ], \%object_override ) ;
159160

160161
$asciio->load_file($file_name) ;
161162
$asciio->run_actions_by_name('Select all elements', 'Copy to clipboard') ;

lib/App/Asciio/Actions/Presentation.pm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ my ($self, $slide) = @_ ;
3636
# use Data::TreeDumper ;
3737
# print STDERR DumpTree \@stack, 'stack:' ;
3838

39-
if(defined $slide)
39+
if(defined $slide and 'ARRAY' eq ref $slide)
4040
{
4141
for my $element ($slide->@*)
4242
{

lib/App/Asciio/Utils/Presentation.pm

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ return
2525
{
2626
my ($self) = @_ ;
2727
$self->run_actions_by_name(['Insert', $x_offset, $y_offset, $file]) ;
28+
return ;
2829
} ;
2930
}
3031

0 commit comments

Comments
 (0)