fix(cad-converter): skip the Dimensions fill during FilterPanel construction

AutoScroll runs a layout inside the constructor before dimensionsPanel
exists, so every CAD Converter form threw NullReferenceException.
This commit is contained in:
aj committed 2026-10-31 05:28:58 -04:00
1 parent e628345947
commit a392cc0863
1 file changed
+2 -1
+2 -1
View File
@@ -371,7 +371,8 @@ namespace OpenNest.Controls
// shows every dimension instead of scrolling inside a short box.
private void FillDimensionsToBottom()
{
if (!dimensionsPanel.IsExpanded)
// Layout already runs inside the constructor (AutoScroll), before the sections exist.
if (dimensionsPanel is not { IsExpanded: true })
return;
var above = 0;