mirror of
https://github.com/mapnik/mapnik.git
synced 2025-12-08 20:13:09 +00:00
Fix get_pixel with image_view
This commit is contained in:
parent
c7ddec8406
commit
e44cdef805
@ -100,7 +100,7 @@ inline std::size_t image_view<T>::height() const
|
||||
template <typename T>
|
||||
inline typename image_view<T>::pixel_type const& image_view<T>::operator() (std::size_t i, std::size_t j) const
|
||||
{
|
||||
return data_(i,j);
|
||||
return data_(i + x_,j + y_);
|
||||
}
|
||||
|
||||
template <typename T>
|
||||
|
||||
@ -78,5 +78,7 @@ SECTION("readers") {
|
||||
REQUIRE(false);
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
} // END SECTION
|
||||
|
||||
|
||||
} // END TEST_CASE
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user