Permalink
Browse files

squash warning when rendering image

  • Loading branch information...
1 parent 2ad4c70 commit e7de933fc570afc45c2af1a6073ffb1c7bd68c15 @domm domm committed with petdance Oct 18, 2010
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/Text/Textile.pm
View
@@ -1556,8 +1556,8 @@ sub format_image {
}
if (!$pctw && !$pcth) {
($w,$h) = ($extra =~ m/(^|\s)(\d+|\*)x(\d+|\*)(\s|$)/)[1,2];
- $w = '' if $w eq '*';
- $h = '' if $h eq '*';
+ $w = '' if $w && $w eq '*';
+ $h = '' if $h && $h eq '*';
if (!$w) {
($w) = ($extra =~ m/(^|[,\s])(\d+)w([\s,]|$)/)[1];
}

0 comments on commit e7de933

Please sign in to comment.