From 7cfa2f0f002adad2542838af4f0666367c4685c5 Mon Sep 17 00:00:00 2001 From: albert Date: Fri, 10 Feb 2012 18:33:40 -0500 Subject: [PATCH] fix --- app/presenters/post_presenter.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/presenters/post_presenter.rb b/app/presenters/post_presenter.rb index 6520fff3c..020023e9d 100644 --- a/app/presenters/post_presenter.rb +++ b/app/presenters/post_presenter.rb @@ -14,7 +14,7 @@ class PostPresenter < Presenter html = %{
} html << %{} - if post.image_width > post.image_height * 1.3 && post.image_width > Danbooru.config.small_image_width && !post.is_flash? + if post.image_width.to_i > post.image_height.to_i * 1.3 && post.image_width.to_i > Danbooru.config.small_image_width && !post.is_flash? klass = "wide" else klass = "tall"