Skip to content

Commit cad8c03

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

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

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

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
#lang racket/unit
22

33
(require "sig.rkt"
4+
"text-sig.rkt"
45
"interfaces.rkt"
56
mred/mred-sig
67
racket/class
@@ -10,7 +11,8 @@
1011
file/convertible
1112
simple-tree-text-markup/text)
1213

13-
(import mred^)
14+
(import mred^
15+
(only framework:editor^ get-standard-style-list))
1416
(export (rename framework:number-snip/int^
1517
[-snip-class% snip-class%]))
1618
(init-depend mred^)
@@ -599,11 +601,12 @@
599601
[(w3 h3 d3 a3) (get-text-extent/f dc clickable-portion font)])
600602
(and (<= (+ w1 w2) sx (+ w1 w2 w3))
601603
(<= 0 sy h3))))))
602-
604+
603605
(super-new)
604-
(inherit set-snipclass set-flags get-flags)
606+
(inherit set-snipclass set-flags get-flags set-style)
605607
(set-flags (cons 'handles-events (get-flags)))
606608
(set-snipclass number-snipclass)
609+
(set-style (send (get-standard-style-list) find-named-style "Standard"))
607610
(iterate 1))) ;; calc first digits
608611

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

0 commit comments

Comments
 (0)