mirror of
https://github.com/penpot/penpot.git
synced 2026-04-30 13:49:06 +00:00
🐛 Fix :heigth typo in clipboard frame-same-size? (#9250)
The height comparison in frame-same-size? used the misspelled keyword :heigth on both sides. (:heigth selrect) returns nil for any selrect, so (= nil nil) is always true and the function degenerated to a width-only comparison. Result: the 'paste next to selected frame' branch in clipboard.cljs fired whenever pasted-content width matched a target frame's width, even if the heights differed. Introduced in #9033 (✨ Add paste to replace (Cmd+Shift+V)). Signed-off-by: iot2edge <tylerprice830@gmail.com> Co-authored-by: iot2edge <tylerprice830@gmail.com>
This commit is contained in:
parent
25c5bb2019
commit
400414776b
@ -547,8 +547,8 @@
|
||||
(defn- frame-same-size?
|
||||
[paste-obj frame-obj]
|
||||
(and
|
||||
(= (:heigth (:selrect (first (vals paste-obj))))
|
||||
(:heigth (:selrect frame-obj)))
|
||||
(= (:height (:selrect (first (vals paste-obj))))
|
||||
(:height (:selrect frame-obj)))
|
||||
(= (:width (:selrect (first (vals paste-obj))))
|
||||
(:width (:selrect frame-obj)))))
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user