[DEBUG] correct corner case bug

This commit is contained in:
Edouard DUPIN 2016-01-19 21:43:43 +01:00
parent d3a58b2548
commit 045008a3c5

View File

@ -121,7 +121,7 @@ void esvg::render::Weight::generate(ivec2 _size, int32_t _subSamplingCount, cons
// find in the subList ...
for (auto &it : availlableSegmentPixel) {
if ( it.p0.y() <= subSamplingCenterPos
&& it.p1.y() >= subSamplingCenterPos) {
&& it.p1.y() > subSamplingCenterPos) {
// check if we not get 2 identical lines:
if ( availlableSegment.size() > 0
&& availlableSegment.back().p1 == it.p0