| … | |
… | |
| 132 | my $latex = $self->{latex}; |
132 | my $latex = $self->{latex}; |
| 133 | my $dvipng = $self->{dvipng}; |
133 | my $dvipng = $self->{dvipng}; |
| 134 | my $strings = $self->{strings}; |
134 | my $strings = $self->{strings}; |
| 135 | |
135 | |
| 136 | my $mtime = $options{mtime}; |
136 | my $mtime = $options{mtime}; |
| 137 | my $refresh = not defined $mtime || $options{refresh}; |
137 | my $refresh = $options{refresh} || ! defined $mtime; |
| 138 | # must refresh if no mtime is given |
138 | # must refresh if no mtime is given |
| 139 | |
139 | |
| 140 | return unless @$strings; # Don't run latex if there are no images to generate |
140 | return unless @$strings; # Don't run latex if there are no images to generate |
| 141 | |
141 | |
| 142 | unless ($refresh) { |
142 | unless ($refresh) { |