From c267678d925cc2d80792f0b98fd11efff8337f59 Mon Sep 17 00:00:00 2001 From: Danny Robson Date: Thu, 23 Jul 2015 18:18:12 +1000 Subject: [PATCH] image: actually use the height value... --- image.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/image.cpp b/image.cpp index ef034cc0..981de0fa 100644 --- a/image.cpp +++ b/image.cpp @@ -129,7 +129,7 @@ util::image::buffer::buffer (size_t _w, size_t _h, size_t _s): w (_w), h (_h), s (_s), - m_data (std::make_unique (_w * _s)) + m_data (std::make_unique (_h * _s)) { CHECK_NEQ (w * h, 0); CHECK_GE (s, w);