Skip to content

Commit

Permalink
FIX: issue red#5470 (A CRASH when calling offset-to-caret inside a fa…
Browse files Browse the repository at this point in the history
…ce actor)
  • Loading branch information
qtxie committed Jan 24, 2024
1 parent 8b68f2a commit 10dc97b
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions modules/view/backends/platform.red
Original file line number Diff line number Diff line change
Expand Up @@ -796,10 +796,18 @@ system/view/platform: context [
bool [red-logic!]
values [red-value!]
txt [red-string!]
word [red-word!]
sym [integer!]
layout? [logic!]
][
layout?: yes
values: object/get-values box
word: as red-word! values + gui/FACE_OBJ_TYPE
sym: symbol/resolve word/symbol
if sym <> gui/rich-text [
fire [TO_ERROR(script face-type) word]
]

txt: as red-string! values + gui/FACE_OBJ_TEXT
if TYPE_OF(txt) <> TYPE_STRING [
stack/set-last none-value
Expand Down

0 comments on commit 10dc97b

Please sign in to comment.