Browse Source

Fixed pasting negative pixel offset

Krzysztof Krysiński 1 month ago
parent
commit
9aa6b10aca
1 changed files with 1 additions and 1 deletions
  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 dataImage = images[0];
             var position = dataImage.Position;
             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;
                 position = VecI.Zero;
             }
             }