Commit 82be3af
committed
Fix programmatic text insertion font size
`StyleContext.getDefaultStyleContext().getStyle(StyleContext.DEFAULT_STYLE)`
gets the style that is default for all documents where it is not set. What we
rather need is the default style for the current document, which is always set
(somewhere). This fixes comment/uncomment and template insertion always
happening with the font size that the document was opened with.1 parent 4807255 commit 82be3af
File tree
1 file changed
+4
-5
lines changed- src/main/java/edu/umich/soar/visualsoar/ruleeditor
1 file changed
+4
-5
lines changedLines changed: 4 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
51 | 51 | | |
52 | 52 | | |
53 | 53 | | |
54 | | - | |
| 54 | + | |
55 | 55 | | |
56 | 56 | | |
57 | 57 | | |
| |||
63 | 63 | | |
64 | 64 | | |
65 | 65 | | |
66 | | - | |
67 | | - | |
| 66 | + | |
68 | 67 | | |
69 | | - | |
| 68 | + | |
70 | 69 | | |
71 | 70 | | |
72 | | - | |
| 71 | + | |
73 | 72 | | |
74 | 73 | | |
75 | 74 | | |
| |||
0 commit comments