summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: c65e1ff)
raw | patch | inline | side by side (parent: c65e1ff)
author | Dmitry D. Chernov <blackdoomer@yandex.ru> | |
Sun, 3 Sep 2023 00:40:09 +0000 (10:40 +1000) | ||
committer | Dmitry D. Chernov <blackdoomer@yandex.ru> | |
Sun, 3 Sep 2023 14:10:17 +0000 (00:10 +1000) |
src/editor/f_main.pas | patch | blob | history |
diff --git a/src/editor/f_main.pas b/src/editor/f_main.pas
index eb7dfdd4fe2877a77d8e5fab92beb419ccbd5349..d869c785749cd0497a217349a91f666e436713d1 100644 (file)
--- a/src/editor/f_main.pas
+++ b/src/editor/f_main.pas
h := High(CopyBuffer);
RemoveSelectFromObjects();
- xadj := -pmin.X - Floor((MapOffset.X - 32) / DotStep) * DotStep;
- yadj := -pmin.Y - Floor((MapOffset.Y - 32) / DotStep) * DotStep;
+ if h > 0 then
+ begin
+ xadj := -pmin.X - Floor((MapOffset.X - 32) / DotStep) * DotStep;
+ yadj := -pmin.Y - Floor((MapOffset.Y - 32) / DotStep) * DotStep;
+ end
+ else
+ begin
+ xadj := DotStep;
+ yadj := DotStep;
+ end;
for a := 0 to h do
with CopyBuffer[a] do