Browse Source

Fixed build error

CPKreuz 4 years ago
parent
commit
92ea451445
1 changed files with 1 additions and 1 deletions
  1. 1 1
      PixiEditor/Models/DataHolders/Document/Document.Layers.cs

+ 1 - 1
PixiEditor/Models/DataHolders/Document/Document.Layers.cs

@@ -139,7 +139,7 @@ namespace PixiEditor.Models.DataHolders
             duplicate.Name = GetLayerSuffix(duplicate);
             duplicate.Name = GetLayerSuffix(duplicate);
 
 
             Layers.Insert(index + 1, duplicate);
             Layers.Insert(index + 1, duplicate);
-            SetActiveLayer(index + 1);
+            SetMainActiveLayer(index + 1);
 
 
             StorageBasedChange storageChange = new (this, new[] { duplicate }, false);
             StorageBasedChange storageChange = new (this, new[] { duplicate }, false);
             UndoManager.AddUndoChange(
             UndoManager.AddUndoChange(