Fix duplicate bend-note rendering in CAD converter

This commit is contained in:
aj
2026-09-11 21:48:13 -04:00
parent bcb85805d9
commit d99e47f241
8 changed files with 72 additions and 2 deletions
+4 -1
View File
@@ -346,7 +346,7 @@ namespace OpenNest.Controls
foreach (var text in Texts)
{
if (string.IsNullOrEmpty(text.Value))
if (string.IsNullOrEmpty(text.Value) || text.IsReplacedByBendNote(Bends))
continue;
var estimatedWidth = text.Height * text.Value.Length * 0.6;
@@ -531,6 +531,9 @@ namespace OpenNest.Controls
foreach (var text in Texts)
{
// The bend overlay already renders this source annotation.
if (text.IsReplacedByBendNote(Bends)) continue;
var pos = PointWorldToGraph(text.Position);
var fontSize = LengthWorldToGui(text.Height);
if (fontSize < 2f) continue;