mirror of
https://github.com/ajisaacs/OpenNest.git
synced 2026-11-10 23:41:09 -05:00
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:
1 parent
e628345947
commit
a392cc0863
1 file changed
+2
-1
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user