Parcourir la source

Fixed pasting negative pixel offset

Krzysztof Krysiński il y a 1 mois
Parent
commit
9aa6b10aca
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. 1 1
      src/PixiEditor/Models/Controllers/ClipboardController.cs

+ 1 - 1
src/PixiEditor/Models/Controllers/ClipboardController.cs

@@ -278,7 +278,7 @@ internal static class ClipboardController
             var dataImage = images[0];
             var position = dataImage.Position;
 
-            if (document.SizeBindable.X < position.X || document.SizeBindable.Y < position.Y)
+            if (document.SizeBindable.X < position.X || document.SizeBindable.Y < position.Y || !hasPos)
             {
                 position = VecI.Zero;
             }