mirror of
https://github.com/cemu-project/idapython.git
synced 2024-11-30 21:14:20 +01:00
idc.py: SetColor() now updated the colours properly. Thanks to google at simon.user.lysator.liu.se for the report.
This commit is contained in:
parent
7d0f743143
commit
ca5ed24ff0
@ -6893,7 +6893,7 @@ def SetColor(ea, what, color):
|
||||
func = idaapi.get_func(ea)
|
||||
if func:
|
||||
func.color = color
|
||||
return True
|
||||
return bool(idaapi.update_func(func))
|
||||
else:
|
||||
return False
|
||||
|
||||
@ -6901,7 +6901,7 @@ def SetColor(ea, what, color):
|
||||
seg = idaapi.getseg(ea)
|
||||
if seg:
|
||||
seg.color = color
|
||||
return True
|
||||
return bool(seg.update())
|
||||
else:
|
||||
return False
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user