Skip to content

Commit

Permalink
schematic: Simplify a couple of expressions
Browse files Browse the repository at this point in the history
Two superfluous conversions between C and Scheme variables have
been removed.
  • Loading branch information
vzh committed May 29, 2024
1 parent 631ac73 commit 7b73889
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions libleptongui/scheme/schematic/window.scm
Original file line number Diff line number Diff line change
Expand Up @@ -269,15 +269,15 @@
(check-integer x 2)
(check-integer y 3)

(unless (in-action? (pointer->window *window))
(unless (in-action? window)
(error "zoom-box-end(): The window is not in action!"))
(a_zoom_box_invalidate_rubber *window)
(schematic_window_set_rubber_visible *window 0)
(a_zoom_box *window)
(when (schematic_window_get_undo_panzoom *window)
(o_undo_savestate_viewport *window))
(i_action_stop *window)
(set-action-mode! 'select-mode #:window (pointer->window *window)))
(set-action-mode! 'select-mode #:window window))


(define (callback-button-released *page-view *event *window)
Expand Down

0 comments on commit 7b73889

Please sign in to comment.