Fix image rendering.
git-svn-id: https://triangle.svn.codeplex.com/svn@79554 0e2699bc-83d4-4a8f-98e7-55e24ab8c7a5
This commit is contained in:
@@ -40,7 +40,7 @@ namespace TriangleNet.Rendering.GDI
|
||||
}
|
||||
|
||||
// Ensure .png extension.
|
||||
if (file.EndsWith(".png", StringComparison.OrdinalIgnoreCase))
|
||||
if (!file.EndsWith(".png", StringComparison.OrdinalIgnoreCase))
|
||||
{
|
||||
Path.ChangeExtension(file, ".png");
|
||||
}
|
||||
@@ -127,7 +127,7 @@ namespace TriangleNet.Rendering.GDI
|
||||
|
||||
if (colors.ColorDictionary == null)
|
||||
{
|
||||
colors.CreateColorDictionary(regions.Count);
|
||||
colors.CreateColorDictionary(regions, regions.Count);
|
||||
}
|
||||
|
||||
return labels;
|
||||
|
||||
Reference in New Issue
Block a user