diff --git a/include/mapnik/image_view_impl.hpp b/include/mapnik/image_view_impl.hpp index a12c60a0e..e4ed2a57c 100644 --- a/include/mapnik/image_view_impl.hpp +++ b/include/mapnik/image_view_impl.hpp @@ -37,7 +37,7 @@ image_view::image_view(std::size_t x, std::size_t y, std::size_t width, std:: data_(data) { if (x_ >= data_.width() && data_.width() > 0) x_ = data_.width() - 1; - if (y_ >= data_.height() && data.height() > 0) y_ = data_.height() - 1; + if (y_ >= data_.height() && data_.height() > 0) y_ = data_.height() - 1; if (x_ + width_ > data_.width()) width_ = data_.width() - x_; if (y_ + height_ > data_.height()) height_ = data_.height() - y_; }