Skip to content

Commit

Permalink
Traktor: Fixed issue with closed strokes in SVG rasterizer.
Browse files Browse the repository at this point in the history
  • Loading branch information
apistol78 committed Apr 27, 2024
1 parent 9e66c30 commit b47dd57
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions code/Drawing/Raster.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -642,6 +642,7 @@ class RasterImpl : public RefCountImpl< IRasterImpl >
m_current = &m_paths.back();
m_current->second = false;
}
T_FATAL_ASSERT(m_current->second == false);
return m_current->first;
}
};
Expand Down
1 change: 1 addition & 0 deletions code/Svg/Rasterizer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,7 @@ bool Rasterizer::raster(const Document* document, drawing::Image* image, float p
if (subPath.closed)
{
raster.lineTo(Mshape * subPath.origin);
raster.moveTo(Mshape * subPath.origin);
raster.close();
}
}
Expand Down
3 changes: 2 additions & 1 deletion code/Ui/PropertyList/NumericPropertyItem.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,8 @@ void NumericPropertyItem::paintValue(PropertyList* parent, Canvas& canvas, const
Point(x, y),
Point(0, 0),
upDown->getSize(parent),
upDown
upDown,
BlendMode::Alpha
);
}

Expand Down

0 comments on commit b47dd57

Please sign in to comment.