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:
gergely.erdelyi 2008-11-16 16:05:00 +00:00
parent 7d0f743143
commit ca5ed24ff0

View File

@ -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