diff --git a/libgen/system.cpp b/libgen/system.cpp index b06344f..f232a6e 100644 --- a/libgen/system.cpp +++ b/libgen/system.cpp @@ -97,7 +97,7 @@ boost::gil::rgba8_image_t PatternRelationSystem::GeneratePatternImage() copy.Eval(y, row); using namespace boost::gil; - auto& px = view(row, col); + auto& px = view(col, row); get_color(px, alpha_t()) = boost::numeric_cast(copy.Get(alpha).ca());; get_color(px, blue_t()) = boost::numeric_cast(copy.Get(blue).ca());; get_color(px, green_t()) = boost::numeric_cast(copy.Get(green).ca());;