fix [#35656] Crash on File Browser
[blender.git] / source / blender / editors / screen / area.c
index 69c1d2cf16916e77bb290454face5f70f2593454..429156ea6a7782e608a96f18b4545ace2f2152aa 100644 (file)
@@ -1339,6 +1339,7 @@ void area_copy_data(ScrArea *sa1, ScrArea *sa2, int swap_space)
        
        sa1->headertype = sa2->headertype;
        sa1->spacetype = sa2->spacetype;
+       sa1->type = sa2->type;
        sa1->butspacetype = sa2->butspacetype;
        
        if (swap_space == 1) {