Skip to content

Commit ac14a67

Browse files
committed
For number snips, use the standard style list.
1 parent 2d322fc commit ac14a67

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

gui-lib/framework/private/number-snip.rkt

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,8 @@
1010
file/convertible
1111
simple-tree-text-markup/text)
1212

13-
(import mred^)
13+
(import mred^
14+
(only framework:editor^ get-standard-style-list))
1415
(export (rename framework:number-snip/int^
1516
[-snip-class% snip-class%]))
1617
(init-depend mred^)
@@ -599,11 +600,12 @@
599600
[(w3 h3 d3 a3) (get-text-extent/f dc clickable-portion font)])
600601
(and (<= (+ w1 w2) sx (+ w1 w2 w3))
601602
(<= 0 sy h3))))))
602-
603+
603604
(super-new)
604-
(inherit set-snipclass set-flags get-flags)
605+
(inherit set-snipclass set-flags get-flags set-style)
605606
(set-flags (cons 'handles-events (get-flags)))
606607
(set-snipclass number-snipclass)
608+
(set-style (send (get-standard-style-list) find-named-style "Standard"))
607609
(iterate 1))) ;; calc first digits
608610

609611
(define remove-decimal-looking-number-snips-on-insertion-mixin

0 commit comments

Comments
 (0)