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)
|
func = idaapi.get_func(ea)
|
||||||
if func:
|
if func:
|
||||||
func.color = color
|
func.color = color
|
||||||
return True
|
return bool(idaapi.update_func(func))
|
||||||
else:
|
else:
|
||||||
return False
|
return False
|
||||||
|
|
||||||
@ -6901,7 +6901,7 @@ def SetColor(ea, what, color):
|
|||||||
seg = idaapi.getseg(ea)
|
seg = idaapi.getseg(ea)
|
||||||
if seg:
|
if seg:
|
||||||
seg.color = color
|
seg.color = color
|
||||||
return True
|
return bool(seg.update())
|
||||||
else:
|
else:
|
||||||
return False
|
return False
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user