Skip to content

Commit e9cf9cb

Browse files
committed
the style name should be lowered.
Made it compile with 7.1
1 parent 26fbd9a commit e9cf9cb

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

src/gui/clickable_text.e

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -209,7 +209,7 @@ feature {NONE} -- Properties
209209
local
210210
f: detachable like current_format
211211
do
212-
if properties.has (a_style) then
212+
if properties.has (a_style.as_lower) then
213213
f := new_format_from_current
214214

215215
if attached foreground_color (a_style) as fg then
@@ -235,7 +235,7 @@ feature {NONE} -- Properties
235235

236236
record_properties (a_name: READABLE_STRING_GENERAL)
237237
do
238-
previous_properties.extend ([a_name, widget.character_format (widget.caret_position)])
238+
previous_properties.extend ([a_name.as_lower, widget.character_format (widget.caret_position)])
239239
end
240240

241241
revert_properties
@@ -262,7 +262,7 @@ feature -- Properties status
262262
has_previous_properties: has_previous_properties
263263
do
264264
if attached previous_properties.item as p then
265-
Result := a_name.is_case_insensitive_equal (p.name)
265+
Result := a_name.as_string_8.is_case_insensitive_equal (p.name.as_string_8)
266266
end
267267
end
268268

@@ -307,36 +307,36 @@ feature -- Properties
307307

308308
set_font (a_name: STRING; ft: like font)
309309
do
310-
properties.force ([foreground_color (a_name), background_color (a_name), ft], a_name)
310+
properties.force ([foreground_color (a_name), background_color (a_name), ft], a_name.as_lower)
311311
end
312312

313313
set_foreground_color (a_name: STRING; c: like foreground_color)
314314
do
315-
properties.force ([c, background_color (a_name), font (a_name)], a_name)
315+
properties.force ([c, background_color (a_name), font (a_name)], a_name.as_lower)
316316
end
317317

318318
set_background_color (a_name: STRING; c: like background_color)
319319
do
320-
properties.force ([foreground_color (a_name), c, font (a_name)], a_name)
320+
properties.force ([foreground_color (a_name), c, font (a_name)], a_name.as_lower)
321321
end
322322

323323
foreground_color (a_name: STRING): detachable EV_COLOR
324324
do
325-
if attached properties.item (a_name) as v then
325+
if attached properties.item (a_name.as_lower) as v then
326326
Result := v.foreground_color
327327
end
328328
end
329329

330330
background_color (a_name: like properties.key_for_iteration): detachable EV_COLOR
331331
do
332-
if attached properties.item (a_name) as v then
332+
if attached properties.item (a_name.as_lower) as v then
333333
Result := v.background_color
334334
end
335335
end
336336

337337
font (a_name: like properties.key_for_iteration): detachable EV_FONT
338338
do
339-
if attached properties.item (a_name) as v then
339+
if attached properties.item (a_name.as_lower) as v then
340340
Result := v.font
341341
end
342342
end

0 commit comments

Comments
 (0)